Interpret consent mode values

  • The UMP SDK interprets GDPR consent choices for Google Consent Mode, covering purposes like ad storage, ad personalization, ad user data, and analytics storage.

  • To get started, ensure you are using the Google Analytics for Firebase SDK, choose between basic and advanced consent mode, turn on consent mode in the AdMob UI, use UMP SDK version 3.0.0 or higher, and initialize Firebase before starting the UMP SDK.

  • The UMP SDK updates the consent state when EU regulations apply, and you should set the default consent state for users when EU regulations do not apply.

  • Basic consent mode requires additional steps compared to Google's default advanced mode.

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

  1. Turn on consent mode in the AdMob UI. For more details, see Manage consent mode settings.

  2. Use UMP SDK version 3.0.0 or higher.

  3. Initialize Firebase before starting the UMP SDK. For more details, see Add the Analytics SDK to your app.

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.