Skip to content

iOS 属性認証

GitHub

Appleは、Google Play Install Referrerに相当する一般的なApp Storeインストールリファラーを提供していません。iOSでは、このプラグインはApple AdServicesのAttributionを使用します。

基本的には getReferrer() AppleのAttributionトークンを取得し、バックエンドまたはモバイル測定パートナーに送信できます。

const result = await InstallReferrer.getReferrer();
console.log(result.attributionToken);

プラグインはネイティブのcodeからAppleのAdServicesエンドポイントにトークンを送信することもできます。

const result = await InstallReferrer.getReferrer({
fetchAppleAttribution: true,
});
console.log(result.appleAttribution);

このモードを使用して、AppleのAttributionペイロードを受信するアプリ自身が受け取ります。 fetchAppleAttribution falseを設定すると、バックエンドまたはAttributionプロバイダーがトークンを交換します。

フィールド説明
platform常に ios.
attributionTokenApple AdServices 属性トークン。
appleAttributionオプションの Apple 属性ペイロードは fetchAppleAttribution 必要なもの
  • 属性ペイロードは Apple Search Ads 属性のみをカバーし、任意の App Store リファラ URL はカバーしません。
  • App Tracking Transparency のプロンプトは、AdServices 属性トークンを要求するために必要ではありません。
  • iOS 属性から続けてください

「iOS 属性から続けてください」セクション

Capacitor を使用している場合

__CAPGO_KEEP_0__ iOSAttribution nativeプラグインの作業を計画するには、 Using @capgo/capacitor-install-referrer Using @capgo/capacitor-install-referrer Capgo プラグインディレクトリ Capgo プラグインディレクトリ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, プラグインの追加または更新 プラグインの追加または更新 Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternatives