IDFA サポート(iOS のみ)
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
User Messaging Platform(UMP)SDK を使用すると、App Tracking Transparency(ATT)の同意を求める前に、ユーザーに IDFA メッセージを表示できます。IDFA メッセージには、アプリで識別子がどのように使用されるかが示されます。
このガイドでは、UMP SDK を使用して IDFA メッセージを表示する方法について説明します。
前提条件
始める前に、以下が完了しているかご確認ください。
Info.plist を更新する
カスタム アラート メッセージを表示する手順は次のとおりです。
Info.plist
ファイルを開きます。
- 使用方法を説明するカスタム メッセージを含む
NSUserTrackingUsageDescription
キーを追加します。
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>
この使用方法の説明文は、同意フォームを提示すると IDFA ATT アラートの中で次のように表示されます。

次に、AppTrackingTransparency
フレームワークをリンクします。

アプリでは、その後 IDFA メッセージが表示されてから、ATT アラートが表示されます。
テスト
requestTrackingAuthorization
は 1 回限りのリクエストであるため、ATT アラートはテスト中に 1 回だけ表示されます。UMP SDK には、承認ステータスが ATTrackingManagerAuthorizationStatusNotDetermined
の場合にのみ読み込み可能なフォームがあります。
アラートをもう一度表示するには、テスト用デバイスでアプリをアンインストールしてから再インストールする必要があります。
IDFA の有無にかかわらず広告をリクエストする
ユーザーが ATT を拒否した場合は、広告フォーマットの API を使用して広告のリクエストを続行します。Google Mobile Ads SDK は、広告リクエストで IDFA を送信しません。詳しくは、広告フォーマットを選択するをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-13 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-13 UTC。"],[[["\u003cp\u003eThis guide explains how to implement the IDFA message within the User Messaging Platform (UMP) SDK for Flutter apps, specifically for handling Apple's App Tracking Transparency (ATT) requirements.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure you have completed the UMP SDK setup and created an IDFA message in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eUpdate your app's \u003ccode\u003eInfo.plist\u003c/code\u003e file to include the \u003ccode\u003eNSUserTrackingUsageDescription\u003c/code\u003e key with a custom message explaining your data usage for personalized ads, which will be displayed in the ATT dialog.\u003c/p\u003e\n"],["\u003cp\u003eLink the \u003ccode\u003eAppTrackingTransparency\u003c/code\u003e framework to enable the display of an IDFA explainer message before the ATT dialog appears.\u003c/p\u003e\n"],["\u003cp\u003eFor testing, remember the ATT dialog appears only once; reinstall the app to see it again after the initial authorization.\u003c/p\u003e\n"]]],["To support the IDFA message using the UMP SDK, first complete the \"Get started\" guide and create an IDFA message in Ad Manager. Update the `Info.plist` file by adding the `NSUserTrackingUsageDescription` key with a custom message explaining IDFA usage. Link the `AppTrackingTransparency` framework. During testing, remember the IDFA ATT dialog appears only once unless the app is uninstalled and reinstalled due to the one-time authorization request. The form is available if the authorization status is `ATTrackingManagerAuthorizationStatusNotDetermined`.\n"],null,[]]