UMP SDK when having both GAM and AdMob in the same app

177 views
Skip to first unread message

chri...@norapps.no

unread,
Oct 31, 2023, 4:18:52 AM10/31/23
to Google Mobile Ads SDK Developers
Hi, 

We are testing out moving from AdMob to GAM and it works fine. But the GDPR setup is duplicated so we have to setup the GDPR dialog on both AdMob and GAM. Now we are getting reviews from users saying they get multiple dialogs. 

How can we ensure that a user only gets one GDPR dialog? Or isn't that possible if we use GAM and AdMob at the same time? And how does the SDK know which GDPR dialog to show (AdMob or GAM)? 

Mobile Ads SDK Forum Advisor

unread,
Oct 31, 2023, 5:07:07 AM10/31/23
to chri...@norapps.no, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Upon reviewing your concern, I understand that you are facing an issue with GDPR consent form. 

There are two ways to ensure that a user only gets one GDPR dialog:

  • Use the Google Consent Management Platform (CMP) to manage consent for both GAM and AdMob. The CMP will only show one dialog, regardless of which ad server is being used.
  • Use the Google Publisher Tag (GPT) to serve ads from both GAM and AdMob. The GPT will only show one dialog, regardless of which ad server is being used.

The SDK knows which GDPR dialog to show based on the order in which the ad servers are initialised. The first ad server to be initialised will show its dialog.

Here are the steps on how to use the Google CMP to manage consent for both GAM and AdMob:

  • Go to the Google CMP website and create an account.
  • Add your website to the CMP.
  • Select the ad servers that you want to use.
  • Configure the consent settings for each ad server.
  • Start collecting consent from your users.

Here are the steps on how to use the Google Publisher Tag to serve ads from both GAM and AdMob:

  • Go to the Google Publisher Tag website and create an account.
  • Add your website to the GPT.
  • Configure the GPT to serve ads from both GAM and AdMob.
  • Start serving ads from your website.

Please reach out to us, if you need any further assistance.

This message is in relation to case "ref:!00D1U01174p.!5004Q02q9LcM:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


chri...@norapps.no

unread,
Oct 31, 2023, 7:11:03 AM10/31/23
to Google Mobile Ads SDK Developers
Hi, 

Thanks for the information. We have already AdMob in production today and we have a few million users who have already consented. 

We use the SDK for ads which is 100% the same for both AdMob and GAM: 
https://developers.google.com/admob/ios/privacy
https://developers.google.com/ad-manager/mobile-ads-sdk/ios/privacy

The only difference when using GAM is the ad unit ID. So when you say: 

>The SDK knows which GDPR dialog to show based on the order in which the ad servers are initialised. The first ad server to be initialised will show its dialog.

I'm still not sure how it detects that? We have an A/B test using GAM instead of AdMob and the only change we did was to switch the ad unit IDs depending on the user is in the A or B group. So how can we tell the SDK that it is using GAM? 

Also if we are using AdMob and then switch to GAM, is the consent status still valid? Or do we have to request it again? 

We are managing the CMP dialog inside AdMob and inside GAM in the respective UIs. 

All of this applies only to our iOS app where we are using this at the moment. 

Mobile Ads SDK Forum Advisor

unread,
Oct 31, 2023, 8:05:02 AM10/31/23
to chri...@norapps.no, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

No, the consent status is not valid if you switch from AdMob to GAM. You will need to request consent again from your users. This is because GAM and AdMob use different consent management platforms.

If you are using both AdMob and GAM, you can use the Google Consent Management Platform (CMP) to manage consent for both ad servers. The CMP will only show one dialog, regardless of which ad server is being used.

Mobile Ads SDK Forum Advisor

unread,
Nov 21, 2023, 10:39:50 AM11/21/23
to chri...@norapps.no, google-adm...@googlegroups.com
To add more detail to this, if you are using the UMP SDK, you only need to integrate the SDK code once. The UMP SDK is separate from AdMob and GAM. The consent gathered using the UMP SDK applies for both AdMob and GAM. 

ref:!00D1U01174p.!5004Q02q9LcM:ref

chri...@norapps.no

unread,
Nov 21, 2023, 12:58:52 PM11/21/23
to Google Mobile Ads SDK Developers
Thanks for the additional details. I'm still not 100% confident I understand exactly how the UMP SDK works in this regard since we define the consent dialog both in AdMob AND in GAM. And they can be different. 

So our scenario: 
AdMob and GAM are setup with different consent dialog UIs 
1. A user installs our app and we use AdMob ad unit IDs and show AdMob consent dialog
2. Via Remote Config we switch the ad unit to GAM ad unit IDs
3. Will this trigger a new consent dialog? Or will it reuse the consent from AdMob like you indicated even though it may be different UI/text? 

I hope what you say is correct since we have set up the consent dialogs 100% equal but just want to make sure. 

Mobile Ads SDK Forum Advisor

unread,
Nov 21, 2023, 1:47:45 PM11/21/23
to chri...@norapps.no, google-adm...@googlegroups.com
Hello,

You can trigger a consent dialog by calling loadAndPresentIfRequired or presentPrivacyOptionsForm. Without looking at your implementation, specifically, this "remote config", switching ad units from AdMob to GAM would not trigger another consent dialog to show. To be clear, consent does not come from AdMob but rather the UMP SDK, which writes the TC string to local storage. This is independent of AdMob and GAM. The Google Mobile Ads SDK reads the TC string from local storage, which it applies to serve appropriate ads. As long as consent is obtained or not required, calling loadAndPresentIfRequired will not show the consent form again. 

Thanks,
Justin

ref:!00D1U01174p.!5004Q02q9LcM:ref
Reply all
Reply to author
Forward
0 new messages