Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Implement Google Consent Mode v2 (mobile)

In this article, we will cover how to configure Google Consent Mode v2 on a mobile consent notice in the Didomi portal.

Navigate to a mobile consent notice, click the Customization tab and select Integrations

Click Consent Modes and enable the toggle inline with Google Consent Mode v2.

Enabling the toggle will automatically add the Google Advertising Product vendor (google) and Google Analytics Products vendor (googleana-4TXnJigR) to the consent notice.

In order to successfully implement Google Consent Mode v2 on the mobile consent notice, your organization will need to have Google Advertising Products and/or Google Analytics Products depending on the Google products your organization utilizes. See: Mobile implementation overview for more information

Click Ok, add the vendors in the subsequent modal.

Expand the Google Consent Mode v2 accordion to configure the details of the integration. How your organization configures the details of the integration will depend on whether your organization is utilizing Basic vs Advanced consent mode.

In the basic version of Google Consent Mode v2, Google products should be blocked by your organization from loading until an end-user interacts with your consent notice on the website. Once the end-user interacts with the consent notice, one of the following can occur:

Consent

If an end-user grants consent then Google product will load and execute the consent mode APIs.

No Consent

If an end-user does not grant consent then no data is transmitted to Google (not even a default consent state). Google products will remain blocked and Google Consent mode's modeling for ads will be based on a general model.

Review the table below for information on each toggle in the integration configuration:

Toggle
Description

Set the default status of Google Consent Mode when the page loads

The basic version of Google Consent Mode v2 will block Google product tags an end-user interacts with your consent notice. Ensure this toggle is de-activated to ensure no default status is set for the basic version.

Enable Google Advertising Products

Will add Google Advertising Products vendor (API ID: google) to the consent notice. Designed to encompass Google products who utilize one or more of the following consent types:

  • ad_storage

  • ad_user_data

  • ad_personalization

  • functionality_storage

  • personalization_storage

  • security_storage

Enable {consent type} before user gives consent

For each consent type, will override the default status of the Google consent type and set it to granted as soon as the Google product tag loads. With Google Consent Mode v2 (Basic), Google product tags will be blocked until the end-user grants consent and not even the consent state is sent to Google. These settings do not need to be enabled.

Enable Google Analytics Products

Will add Google Analytics Products vendor (API ID: googleana-4TXnJigR) to the consent notice. Designed to encompass Google products who require the analytics_storage consent type.

Enable TCF integration with Google Consent Mode

Enables Didomi to set an additional flag (TCData.enableAdvertiserConsentMode to true) for getTCData and addEventListener commands. This additional flag allows Google to infer and map consent settings to the following Google Consent Mode v2 consent types based on IAB TCF purposes:

  • ad_storage

  • ad_user_data

  • ad_personalization

Click here for more information on how Google calculates the mapping between IAB TCF purposes and Google consent types. Note: The TCF integration with Google Consent Mode does not support Google product tags that require the analytics_storage, functionality_storage, personalization_storage, or security_storage consent types. For Google products that require the analytics_storage consent type, Didomi will set this consent type to granted if the end-user consents globally (consent to vendor and all of its purposes) for Google Analytics Products (API ID: googleana-4TXnJigR).

Firebase

Firebase is the core SDK for Google apps. Once enabled, the integration ensures:

  • proper mapping of Didomi consent signals to Firebase

  • automatic propagation to Google SDKs for measurement and advertising

  • simplified compliance for GDPR and similar regulations

Branch

App Attribution Partners (AAP) like Branch need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Branch is enabled in the console and the Branch SDK is present in your app, Didomi manages the Google Consent Mode signal propagation for Branch.

For end-users in GDPR-regulated regions, Didomi indicates compliance context by setting eea to 1 and applies default values for consent signals based on your configuration in the console. After the end-user provides consent, Didomi recalculates the status of these signals using the end-user’s consent for Google Advertising Products and Google Analytics Products and updates Branch accordingly.

For users outside GDPR regions, Didomi sets eea to 0 to indicate that no GDPR obligations apply.

Kochava

App Attribution Partners (AAP) like Kochava need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Kochava is enabled in the console, Didomi ensures that Kochava receives the consent string needed to populate Google’s consent signals. Kochava uses this consent information during install and event transmissions.

When the CMP collects end-user consent, the consent string is shared with Kochava through Didomi, provided that the SDK is configured to send installs or events after the user has given consent.

Kochava parses the TCF consent string and applies it to build Google-required signals. This process works seamlessly with CMPs that support the IAB Transparency & Consent Framework (TCF) v2.3 or the Global Privacy Platform API v1.1.

Airbridge

App Attribution Partners (AAP) like Airbridge need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Airbridge is enabled in the console and the Airbridge SDK is detected in the app, Didomi computes the appropriate Google Consent Mode signals and shares them with Airbridge.

For end-users located in the EEA (European Economic Area) and therefore subject to GDPR, Didomi informs Airbridge that the user is in a regulated region by setting eeaRegion to true. At the same time, Airbridge receives the default values for consent signals based on your configuration in the Didomi SDK. Once the end-user provides their consent through the CMP, Didomi updates these signals and ensures that Airbridge reflects the end-user’s actual preferences.

For end-users outside the EEA, Didomi signals that the end-user is not in a GDPR-regulated region by setting eeaRegion to false.

AppsFlyer

App Attribution Partners (AAP) like AppsFlyer need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When AppsFlyer is enabled in the console and the AppsFlyer SDK is present in your app, Didomi manages the Google Consent Mode signal propagation for AppsFlyer.

  • For users in GDPR-regulated regions, Didomi indicates compliance context by setting isUserSubjectToGDPR to true and applies default values for consent signals based on your configuration in the console. After the end-user provides consent, Didomi recalculates the status of these signals using the end-user’s consent for Google Advertising Products and Google Analytics Products and updates AppsFlyer accordingly.

  • For users outside of GDPR jurisdiction, Didomi will set isUserSubjectToGDPR to false .

  • If you have enabled IAB TCF integration with Google Consent Mode, Didomi will automatically instruct AppsFlyer to use the TC string by setting enableTCFDataCollection(true) . As a result, AppsFlyer can directly get the user's consent from the TC string in SharedPreferences

In the advanced version of Google Consent Mode v2, Google products still load when an end-user accesses your app (unlike the basic version). Google products will load the consent mode API and do the following:

  • Set default consent states for consent types. By default, consent may be denied, unless your organization sets its own default values. While consent is denied, the Google product sends cookieless pings.

  • Wait for end-user interaction with the consent notice and update consent states accordingly. Only when an end-user grants consent to data collection, will Google products send the full measurement data. Learn more about tag behavior.

Review the table below for information on each toggle in the integration configuration:

Toggle
Description

Set the default status of Google Consent Mode when the page loads

The advanced version of Google Consent Mode v2 will load Google tags when an end-user accesses your website with a default status for all Google consent types. The default status is denied unless configured otherwise below.

Enable this toggle to ensure this default status is set for the advanced version.

Enable Google Advertising Products

Will add Google Advertising Products vendor (API ID: google) to the consent notice. Designed to encompass Google products who utilize one or more of the following consent types:

  • ad_storage

  • ad_user_data

  • ad_personalization

  • functionality_storage

  • personalization_storage

  • security_storage

Enable {consent type} before user gives consent

For each consent type, will override the default status of the Google consent type and set it to granted as soon as the Google product tag loads.

Note: Consult with your organization's legal counsel and DPO before enabling any of these settings.

Enable Google Analytics Products

Will add Google Analytics Products vendor (API ID: googleana-4TXnJigR) to the consent notice. Designed to encompass Google products who require the analytics_storage consent type.

Enable TCF integration with Google Consent Mode

Enables Didomi to set an additional flag (TCData.enableAdvertiserConsentMode to true) for getTCData and addEventListener commands. This additional flag allows Google to infer and map consent settings to the following Google Consent Mode v2 consent types based on IAB TCF purposes:

  • ad_storage

  • ad_user_data

  • ad_personalization

Click here for more information on how Google calculates the mapping between IAB TCF purposes and Google consent types. Note: The TCF integration with Google Consent Mode does not support Google product tags that require the analytics_storage, functionality_storage, personalization_storage, or security_storage consent types. For Google products that require the analytics_storage consent type, Didomi will set this consent type to granted if the end-user consents globally (consent to vendor and all of its purposes) for Google Analytics Products (API ID: googleana-4TXnJigR).

Firebase

Firebase is the core SDK for Google apps. Once enabled, the integration ensures:

  • proper mapping of Didomi consent signals to Firebase

  • automatic propagation to Google SDKs for measurement and advertising

  • simplified compliance for GDPR and similar regulations

Branch

App Attribution Partners (AAP) like Branch need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Branch is enabled in the console and the Branch SDK is present in your app, Didomi manages the Google Consent Mode signal propagation for Branch.

For end-users in GDPR-regulated regions, Didomi indicates compliance context by setting eea to 1 and applies default values for consent signals based on your configuration in the console. After the end-user provides consent, Didomi recalculates the status of these signals using the end-user’s consent for Google Advertising Products and Google Analytics Products and updates Branch accordingly.

For users outside GDPR regions, Didomi sets eea to 0 to indicate that no GDPR obligations apply.

Kochava

App Attribution Partners (AAP) like Kochava need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Kochava is enabled in the console, Didomi ensures that Kochava receives the consent string needed to populate Google’s consent signals. Kochava uses this consent information during install and event transmissions.

When the CMP collects end-user consent, the consent string is shared with Kochava through Didomi, provided that the SDK is configured to send installs or events after the user has given consent.

Kochava parses the TCF consent string and applies it to build Google-required signals. This process works seamlessly with CMPs that support the IAB Transparency & Consent Framework (TCF) v2.3 or the Global Privacy Platform API v1.1.

Airbridge

App Attribution Partners (AAP) like Airbridge need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When Airbridge is enabled in the console and the Airbridge SDK is detected in the app, Didomi computes the appropriate Google Consent Mode signals and shares them with Airbridge.

For end-users located in the EEA (European Economic Area) and therefore subject to GDPR, Didomi informs Airbridge that the user is in a regulated region by setting eeaRegion to true. At the same time, Airbridge receives the default values for consent signals based on your configuration in the Didomi SDK. Once the end-user provides their consent through the CMP, Didomi updates these signals and ensures that Airbridge reflects the end-user’s actual preferences.

For end-users outside the EEA, Didomi signals that the end-user is not in a GDPR-regulated region by setting eeaRegion to false.

AppsFlyer

App Attribution Partners (AAP) like AppsFlyer need to receive accurate consent signals to comply with privacy regulations and forwards these signals to Google.

When AppsFlyer is enabled in the console and the AppsFlyer SDK is present in your app, Didomi manages the Google Consent Mode signal propagation for AppsFlyer.

  • For users in GDPR-regulated regions, Didomi indicates compliance context by setting isUserSubjectToGDPR to true and applies default values for consent signals based on your configuration in the console. After the end-user provides consent, Didomi recalculates the status of these signals using the end-user’s consent for Google Advertising Products and Google Analytics Products and updates AppsFlyer accordingly.

  • For users outside of GDPR jurisdiction, Didomi will set isUserSubjectToGDPR to false .

  • If you have enabled IAB TCF integration with Google Consent Mode, Didomi will automatically instruct AppsFlyer to use the TC string by setting enableTCFDataCollection(true) . As a result, AppsFlyer can directly get the user's consent from the TC string in SharedPreferences

Last updated