iOSAttribution
このプラグインのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーします。
Apple AdServices
「Apple AdServices」セクションAppleは、Google Play Install Referrerに相当する一般的なApp Storeインストールリファラーを提供していません。iOSでは、このプラグインはApple AdServicesのAttributionを使用します。
標準設定では getReferrer() AppleのAttributionトークンを取得し、バックエンドまたはモバイル測定パートナーに送信できます。
const result = await InstallReferrer.getReferrer();console.log(result.attributionToken);ネイティブAppleAttributionLookup
「ネイティブAppleAttributionLookup」のセクションプラグインは、ネイティブcodeからAppleのAdServicesエンドポイントにトークンを送信することもできます。
const result = await InstallReferrer.getReferrer({ fetchAppleAttribution: true,});
console.log(result.appleAttribution);このモードを使用して、AppleのAttributionペイロードを受信するアプリ自身が受け取ります。 fetchAppleAttribution falseを設定すると、バックエンドまたはAttributionプロバイダーがトークンを交換します。
返却されるフィールド
「返却されるフィールド」のセクション| フィールド | 説明 |
|---|---|
platform | 常に ios. |
attributionToken | __CAPGO_KEEP_0__ |
appleAttribution | オプションのAppleAttributionPayload fetchAppleAttribution is true の場合 |
要件
要件- iOS 14.3 以降で利用可能な Apple AdServices 属性トークン
- 属性ペイロードは Apple Search Ads 属性のみをカバーし、アプリストアの任意のリファラURLはカバーされません。
- App Tracking Transparency のプロンプトは、AdServices 属性トークンを要求するために必要ありません。