同意モードの値を解釈する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
UMP SDK は、Google の同意モードの GDPR 同意選択を解釈できます。UMP SDK は、次の目的を解釈します。
- 広告のストレージ
- 広告のカスタマイズ
- 広告ユーザーデータ
- 分析用ストレージ
同意モードの値を解釈することは、プロダクトの使用について同意を得るアプリに役立ちます。
始める前に
使ってみる
AdMob 管理画面で同意モードを有効にします。詳しくは、同意モードの設定を管理するをご覧ください。
UMP SDK バージョン 3.0.0 以降を使用します。
UMP SDK を開始する前に Firebase を初期化します。詳しくは、アプリにアナリティクス SDK を追加するをご覧ください。
デフォルトの同意ステータスを設定する
UMP SDK は、ユーザーに欧州連合(EU)の規制が適用される場合に同意ステータスを更新します。EU 規制がユーザーに適用されない場合は、デフォルトの同意ステータスを設定します。
基本モードを使用する
基本モードを使用するには、同意モードの基本モードのサポートをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[],[],null,["The UMP SDK can interpret GDPR consent choices for Google\n\n[Consent Mode](//support.google.com/admanager/answer/10076805#consentmode).\n\nThe UMP SDK interprets the following purposes:\n\n- ad storage\n- ad personalization\n- ad user data\n- analytics storage\n\nInterpreting consent mode values is useful for apps that get consent for the use\nof your products.\n\nBefore you begin\n\n- Make sure you are using the [Google Analytics for Firebase SDK](//firebase.google.com/docs/analytics) in your app.\n- Choose [Basic versus advanced consent mode](//developers.google.com/tag-platform/security/concepts/consent-mode#basic-vs-advanced). Google supports advanced mode by default, while basic mode has additional steps.\n\nGet started\n\n1. Turn on consent mode in the AdMob UI. For more details, see\n\n [Manage consent mode settings](//support.google.com/admanager/answer/16053245).\n\n2. Use UMP SDK version 3.0.0 or higher.\n\n3. Initialize Firebase before starting the UMP SDK. For more details, see\n\n [Add the Analytics SDK to your app](//firebase.google.com/docs/analytics/get-started?platform=ios#add-sdk).\n\nSet default consent state\n\nThe UMP SDK updates the consent state when European Union (EU) regulations\napply to the user.\n\n[Set the default consent state](//developers.google.com/tag-platform/security/guides/app-consent?consentmode=basic&platform=ios#default-consent)\n\nwhen EU regulations don't apply to the user.\n\nUse basic mode\n\nTo use basic mode, see [Consent mode basic mode support](//developers.google.com/funding-choices/fc-sdks#consent_mode_basic_mode_support)."]]