패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.7.1

advertising_id

광고 ID에 액세스하기 위한 플러터 플러그인입니다. iOS에서는 ASIdentifierManager.advertisingIdentifier, Android에서는 광고 ID를 래핑합니다.

AndroidiOS
30일 다운로드
10.5만
좋아요
42
Pub 점수
140

패키지 설치

flutter pub add advertising_id

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

advertising_id 패키지는 Android 및 iOS 플랫폼에서 디바이스의 광고 ID에 접근할 수 있도록 해주는 Flutter 플러그인입니다. iOS의 ASIdentifierManager.advertisingIdentifier와 Android 광고 ID라는 네이티브 API를 래핑하여 타겟 광고에 사용되는 고유 식별자를 가져올 수 있게 해줍니다. 이를 통해 개발자는 플랫폼별 개인정보 보호 지침을 준수하면서도 광고 맞춤화 및 분석 기능을 지원할 수 있습니다. 이 플러그인은 가볍고 Flutter 애플리케이션에 원활하게 통합될 수 있습니다.

사용 사례

  • 타깃 광고
  • 사용자 분석
  • 광고 할당
  • 앱 간 추적

주요 기능

  • 크로스 플랫폼 지원
  • Privacy-compliant
  • 간단한 API
  • 네이티브 통합

적합한 대상

  • 광고 제공 앱
  • 분석 도구
  • 마케팅 플랫폼

고려 사항

  • iOS에서 사용자 동의가 필요합니다
  • 플랫폼 권한에 따라 다릅니다
  • 모든 기기에서 사용할 수 없습니다
  • 개인정보 설정에 의해 제한될 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

pub package

advertising_id

A Flutter plugin to access advertising ID.

Wraps ASIdentifierManager.advertisingIdentifier (on iOS) and advertising ID (on Android).

Getting Started

Run this command

 flutter pub add advertising_id

This will add a line like this to your package's pubspec.yaml

dependencies:
  ....
  advertising_id: ^2.7.1

Usage

AdvertisingId.id

Get advertising ID.

String? advertisingId;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
  advertisingId = await AdvertisingId.id(true);
} on PlatformException {
  advertisingId = null;
}
AdvertisingId.isLimitAdTrackingEnabled

Retrieves whether the user has limit ad tracking enabled or not.

bool? isLimitAdTrackingEnabled;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
  isLimitAdTrackingEnabled = await AdvertisingId.isLimitAdTrackingEnabled;
} on PlatformException {
  isLimitAdTrackingEnabled = false;
}

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.