広告主向け識別子(IDFA)のサポート
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
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-08-27 UTC。
[null,null,["最終更新日 2025-08-27 UTC。"],[[["\u003cp\u003eThis guide provides steps to implement the IDFA message within the User Messaging Platform (UMP) SDK for iOS apps.\u003c/p\u003e\n"],["\u003cp\u003eBefore proceeding, complete the UMP Get Started guide and create an IDFA message in Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eUpdate your app's \u003ccode\u003eInfo.plist\u003c/code\u003e to include the \u003ccode\u003eNSUserTrackingUsageDescription\u003c/code\u003e key explaining how you use the IDFA.\u003c/p\u003e\n"],["\u003cp\u003eLink the \u003ccode\u003eAppTrackingTransparency\u003c/code\u003e framework to enable the IDFA explainer message before the iOS system dialog.\u003c/p\u003e\n"],["\u003cp\u003eFor testing purposes, reinstall the app to see the IDFA ATT dialog repeatedly, as it only appears once per install.\u003c/p\u003e\n"]]],[],null,["# Identifier for Advertisers (IDFA) support\n\nSelect platform: [iOS](/ad-manager/mobile-ads-sdk/ios/privacy/idfa \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/privacy/idfa \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThe User Messaging Platform (UMP) SDK lets you present an\n\n[IDFA message](//support.google.com/admanager/answer/10115027)\n\nto your users before requesting their consent for\n[App Tracking Transparency](//developer.apple.com/documentation/apptrackingtransparency)\n(ATT). The IDFA message shows your users how your app uses the identifier.\n\nThis guide covers using the UMP SDK to present an IDFA message.\n| **Note:** If you enable both GDPR and IDFA messages, refer to [Which message your users will\n| see](//support.google.com/admanager/answer/10075998#which-message-your-users-will-see) for the possible outcomes.\n\nPrerequisites\n-------------\n\nBefore you begin, make sure you've done the following:\n\n- Complete the [Get started guide](/ad-manager/mobile-ads-sdk/ios/privacy).\n- [Create an IDFA message](//support.google.com/admanager/answer/10116236) in the Ad Manager UI.\n\nUpdate Info.plist\n-----------------\n\nTo show a custom alert message, do the following:\n\n1. Open the `Info.plist` file.\n2. Add the `NSUserTrackingUsageDescription` key with a custom message that describes the usage:\n\n \u003ckey\u003eNSUserTrackingUsageDescription\u003c/key\u003e\n \u003cstring\u003eThis identifier will be used to deliver personalized ads to you.\u003c/string\u003e\n\nThe usage description appears as part of the IDFA ATT alert when you present the\nconsent form:\n\nThen, link the `AppTrackingTransparency` framework:\n\nYour app then shows an IDFA message before the ATT alert.\n\nTesting\n-------\n\nWhile testing, remember that the ATT alert only appears a single time since\n[`requestTrackingAuthorization`](//developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorization)\nis a one-time request. The UMP SDK only has a form available to load if the\nauthorization status is\n[`ATTrackingManagerAuthorizationStatusNotDetermined`](//developer.apple.com/documentation/apptrackingtransparency/attrackingmanagerauthorizationstatus/attrackingmanagerauthorizationstatusnotdetermined?language=objc).\n\nTo make the alert appear a second time, you must uninstall and reinstall your\napp on your test device.\n\nRequest ads with or without IDFA\n--------------------------------\n\nIf a user denies ATT, continue to request ads using your ad format's APIs. The\n\n\nGoogle Mobile Ads SDK\n\ndoesn't send IDFA in the ad request. For more details see,\n[Select an ad format](/ad-manager/mobile-ads-sdk/ios/quick-start#select_an_ad_format)."]]