同意モードの値を解釈する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
UMP SDK は、Google の同意モードの GDPR 同意の選択肢を解釈できます。UMP SDK は次の目的を解釈します。
- 広告のストレージ
- 広告のカスタマイズ
- 広告ユーザーデータ
- 分析用ストレージ
同意モードの値を解釈することは、プロダクトの使用に関する同意を取得するアプリで役立ちます。
始める前に
始める
AdMob の管理画面で同意モードを有効にします。詳しくは、同意モードの設定を管理するをご覧ください。
UMP SDK バージョン 3.2.0(Android)または 3.0.0(iOS)以降を使用します。
UMP SDK を開始する前に Firebase を初期化します。詳しくは、アプリにアナリティクス SDK を追加するをご覧ください。
デフォルトの同意ステータスを設定する
UMP SDK は、欧州連合(EU)の規制がユーザーに適用されるときに同意ステータスを更新します。EU の規制がユーザーに適用されない場合は、デフォルトの同意ステータス(Android | iOS)を設定します。
基本モードを使用する
基本モードを使用するには、同意モードの基本モードのサポートをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[],[],null,["# Interpret consent mode values\n\nSelect platform: [Android](/ad-manager/mobile-ads-sdk/android/privacy/consent-mode \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/privacy/consent-mode \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/privacy/consent-mode \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThe 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\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-----------\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.2.0 (Android) or 3.0.0 (iOS) 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=flutter#add-sdk).\n\nSet default consent state\n-------------------------\n\nThe UMP SDK updates the consent state when European Union (EU) regulations\napply to the user.\n\nSet the default consent state ([Android](//developers.google.com/tag-platform/security/guides/app-consent?consentmode=basic&platform=android#default-consent) \\| [iOS](//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--------------\n\nTo use basic mode, see [Consent mode basic mode support](//developers.google.com/funding-choices/fc-sdks#consent_mode_basic_mode_support)."]]