Interpret consent mode values
Stay organized with collections
Save and categorize content based on your preferences.
Select platform:
Android
iOS
Flutter
The UMP SDK can interpret GDPR consent choices for Google
Consent Mode.
The UMP SDK interprets the following purposes:
- ad storage
- ad personalization
- ad user data
- analytics storage
Interpreting consent mode values is useful for apps that get consent for the use
of your products.
Before you begin
Get started
Turn on consent mode in the AdMob UI. For more details, see
Manage consent mode settings.
Use UMP SDK version 3.2.0 or higher.
Initialize Firebase before starting the UMP SDK. For more details, see
Add the Analytics SDK to your app.
Set default consent state
The UMP SDK updates the consent state when European Union (EU) regulations
apply to the user.
Set the default consent state
when EU regulations don't apply to the user.
Use basic mode
To use basic mode, see Consent mode basic mode support.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["The UMP SDK can interpret GDPR consent choices for Google\n\n[Consent Mode](//support.google.com/admob/answer/10114014#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/admob/answer/16053245).\n\n2. Use UMP SDK version 3.2.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=android#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=android#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)."]]