0

I'm in the process of integrating the GoogleMobileAds & User Messenger Platform SDK for iOS.

I understand it offers a way for users to consent or not consent inside the EEA.

Firstly you test to see if consent is required:

UMPFormStatus formStatus = UMPConsentInformation.sharedInstance
                                 .formStatus;
                         if (formStatus == UMPFormStatusAvailable) {
                           [self loadForm];
                         }
...

The Admob guide says you can serve non-personalised ads as follows:

GADRequest *request = [GADRequest request];
GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = @{@"npa": @"1"};  //this being the key line
[request registerAdNetworkExtras:extras];

If the user consents, ads can be loaded fine, as GoogleMobileAds default is to serve personalised ads...

However, if a user does choose not to consent, how do we programmatically test the consent status before loading Ads? Or does the GoogleMobileAds monitor this inside Admob and only serve non-personalised ads based on the users input?

I haven't found an answer to this on Stack or Github etc. Thank you for your time.

Edit: I have since discovered that if a user doesn't consent, no ads are shown... But a test to check consent would still be helpful, as you could manually load non-personalised ads (npa)... But I can't find how to test the consent, so the question above, still stands. Thank you.

Reanimation
  • 3,151
  • 10
  • 50
  • 88
  • add GADDelayAppMeasurementInit to info.plist https://developers.google.com/admob/ump/ios/quick-start#delay_app_measurement_optional – Amod Gokhale Jun 08 '22 at 17:00
  • @AmodGokhale Other than delaying metrics, would you mind explaining how that would help showing non-personalised ads to those who don't consent? Thank you. – Reanimation Jun 09 '22 at 11:51
  • this is from link above "By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics without making additional code changes. " – Amod Gokhale Jun 10 '22 at 12:35
  • So i usually don't load ads sdk immediately on first launch of the app... maybe give some time before user accepts / declines consent. Alternatively you can check for consent flag... but setting above flag and not immediately loading ads on first launch should take care of your requirement – Amod Gokhale Jun 10 '22 at 12:37
  • 1
    @AmodGokhale Thank you for the reply. The UMP SDK doesn't offer a consent flag, so there's no way of knowing if the user has consented or not. So are you saying adding this delay (so Ads are loaded after consent has be denied) will ensure non-personalised ads are served? Sorry if I'm still misunderstanding. I was under the impression if the user doesn't consent, no ads will be served. Thank you again – Reanimation Jun 10 '22 at 13:04
  • that is not correct... taking consent is not googles responsibility. Developer has to design app so that it follows guidelines of admob. if user doesn't provide any consent - By default, ad requests to Google serve personalized ads, with ad selection based on the user's previously collected data. Source - third para in this link - https://developers.google.com/admob/android/eu-consent – Amod Gokhale Jun 13 '22 at 05:27
  • @AmodGokhale I never suggested it's wasn't the devs responsibility? I'm saying there's no way of knowing whether the user consented. GoogleMobileAds or UMP SDK doesn't include a public consent flag, therefore when `do not consent` is selected, non-personalised ads can't be served. Google's GDPR Legacy Consent SDK offered this consent flag (so non-personalised ads could be served in this situation). Your Source confirms this. So my question is still how do we request non-personalised ads when the user presses "do not consent"? Currently if they "do not consent" no ads are served. Thank you. – Reanimation Jun 13 '22 at 11:20
  • So my question is still how do we request non-personalised ads when the user presses "do not consent"? Currently if they "do not consent" no ads are served. --- Can you please upload logs after user presses "do not consent"? In my case I can see advertisements without any issue. – Amod Gokhale Jun 13 '22 at 14:59
  • specially look for error code that is returned by admob for "do not consent" test case – Amod Gokhale Jun 13 '22 at 15:02

0 Answers0