Migrating to UMP Consent form and ads do not load when consent is not given

558 views
Skip to first unread message

ilker...@gmail.com

unread,
Dec 16, 2023, 8:02:50 AM12/16/23
to Google Mobile Ads SDK Developers
I am migrating from old consent library to UMP library as Admob requires use of GDPR message with new form. (that's what I understood, if I'm wrong please let me know)
All is working good, but I have an issue:
Since I am not in US or EU when I test my app , I use ConsentDebugSettings and add my device as a test device. 
Now with that setting I can get a consent form. If I give consent, I can receive ads.
But if I do not consent, ads do not load.
I see on log : "ad failed to load 3"

To prevent that, I changed my GDPR settings to show Non-Personalized ads by default. In that case, I expect to see NPA by default and when consent is given, I should see Personalized Ads. (correct ?)

However, even with that setting, if I don't consent, ads do not load (ad failed to load 3)

Besides, if I set this (NPA) as default, and if the user is not in EU or US then they will not see the consent form. As a result , will they always see NPA  ? (as the default is NPA and consent form can not be displayed because of region)

Is there a way to display consent form even if the user's region does not require it ?

Additionally; I see this warning in logcat whenever I run my app. This comes even if consent is given and ads are loaded/displayed:
"2023-12-15 13:34:36.537 19428-30573 adservices              com.google.android.adservices.api    E  Package com.myapp.test is not allowed to call the API."

I have the permission "<uses-permission android:name="android.permission.ACCESS_ADSERVICES_AD_ID" />" in the manifest file.

Could this error be related to my issue ?
Or is it because I use an account which does not require consent for PA and that I added my device as test device ?

Mobile Ads SDK Forum Advisor

unread,
Dec 17, 2023, 10:22:04 PM12/17/23
to ilker...@gmail.com, google-adm...@googlegroups.com

Hi

Thank you for contacting the Mobile Ads SDK Support team.

By reviewing your concern, I understand that you are facing issues with UMP consent. Kindly share the below information to investigate further. 

  • Mobile Ads SDK Version
  • Platform
  • App ID and Ad Unit ID
  • Error log
  • Sample project which replicates the issue.
  • Steps to replicate the issue

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002r2Ct8QAE&entry.80707362=00215648
2. Fill out all fields, and attach your file(s).
3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.


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

Thanks,
 
Google Logo Mobile Ads SDK Team

 

Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Dec 19, 2023, 6:37:24 AM12/19/23
to ilker...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.
 

Mobile Ads SDK Forum Advisor

unread,
Dec 20, 2023, 9:35:52 AM12/20/23
to ilker...@gmail.com, google-adm...@googlegroups.com
Hello,

What you are experiencing is the intended behavior. See our Ad serving modes guide for more information. When you "give consent", you have accepted the required purposes and vendors to receive personalized ads. If you do not consent, you are in limited ads serving mode. For the scenario of going into "manage options" you also have to give consent to a vendor from the manage options UI or else there will not be an available ad network to serve ads. See How to read consent choices to help with how to you can programmatically confirm this. 

Thanks,
Justin

ref:!00D1U01174p.!5004Q02r2Ct8:ref

ilker...@gmail.com

unread,
Dec 21, 2023, 2:17:26 AM12/21/23
to Google Mobile Ads SDK Developers
Hi,

I don't think that we are on the same page. Did you check the situation with my example code ?
If consent to personalized ads is not given , it never loads an Ad. Never: not just a single instance.
However, I expect to see non-personalized ads. Even if I use test ads (using test device IDs) , I do not see an Ad when consent is not given.
Is this consent for "personalized ads" or "all ads" ? Because  with my current experience it seems like it is for "all ads". If consent is not given, user does not see ads. Then how will the "ad supported app" be monetized ?
It becomes a "free app with no ads" when user does not give consent.

Prior to UMP, I was (and still am) using old consent library. And with that implementation, I do not observe such behaviour. If the user does not consent, they see non-personalized ads (as intended)

Could you please recheck my sample app ?

Thanks,

Test Dvd

unread,
Dec 21, 2023, 5:26:37 AM12/21/23
to Google Mobile Ads SDK Developers
Hi ilker...

Welcome to the new reality and the ruin of app developers.

Mobile Ads SDK Forum Advisor

unread,
Dec 21, 2023, 11:47:55 AM12/21/23
to testear....@gmail.com, google-adm...@googlegroups.com
@ilkeraktuna

I've tested your app. What you are experiencing is the current working behavior. A user not giving consent will not result in serving non-personalized ads but serving limited ads. Users have to go into "manage options" and select the required purposes and vendors to receive non-personalized ads. See our Ad serving modes guide for more information. As of today, limited ads is more than likely going to result in a "no fill", which is the ad failed to load error you are experiencing. This is something that the Google Mobile Ads SDK or UMP SDK does not control but is a result of ad serving. 

As a side note, you should be using 

consentInformation.privacyOptionsRequirementStatus ==
      ConsentInformation.PrivacyOptionsRequirementStatus.REQUIRED

to check if you need to show the menu button to allow users to modify their consent choices. See Privacy options for more information. 

ilker...@gmail.com

unread,
Dec 21, 2023, 12:24:15 PM12/21/23
to Google Mobile Ads SDK Developers
  OK. In this case, since my app is an ad supported app and I don't want to serve users who do not see Ads, I have to check if user has given consent.

I can do this checking the IABTCF_PurposeConsents preference after consent.
However, I have 2 issues with that:
1. I see purpose 1 as the first choice on "manage options" , but I don't see the purposes 2,7,9,10 which are the minimum required consents for non-personalized ads. So how will the user give consent for these purposes ?
2. When testing, if I select "consent" , I can see ads. If I select "manage options" and then "accept all" , I can see ads. BUT if I select "manage options" and then choose options (all selected) , Ads fail to load. I see all bits of IABTCF_PurposeConsents  as "1" (11111111111)
So choosing all consents on "manage options" page does not make it equal to full consent.
How's that ?
I also checked with different variations including 11000010111
None of these helped with the Ads. I can get ads only if I choose "consent" or "accept all" 

Mobile Ads SDK Forum Advisor

unread,
Dec 21, 2023, 1:19:40 PM12/21/23
to ilker...@gmail.com, google-adm...@googlegroups.com
@ilkeraktuna

1. All of the purposes are listed in the "Manage options" section. You have to scroll the web view to view all the purposes and can toggle them accordingly. If you only see one purpose, please provide a screenshot that I can escalate to the engineering team. 

2. When selecting "Manage options" and choosing options, you also have to give vendor consent for an ad network to serve appropriate ads. You can get there by clicking "Vendor preferences". You can see the Google Advertising network in this list. 

Test Dvd

unread,
Dec 22, 2023, 8:56:57 AM12/22/23
to Google Mobile Ads SDK Developers
Hello ilkeraktuna,

You know that it is totally impossible for a user to go into options and activate that entire history to show non-personalized ads, right???

The solution is another, not that one.

ilker...@gmail.com

unread,
Dec 22, 2023, 9:06:04 AM12/22/23
to Test Dvd, Google Mobile Ads SDK Developers

Please tell me. What is the solution ?

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/6Iyy7A1ZH9M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/d6ae017d-4a3e-4023-a97b-9852ea3c61f9n%40googlegroups.com.

ilker...@gmail.com

unread,
Dec 22, 2023, 3:15:11 PM12/22/23
to Google Mobile Ads SDK Developers
I really did not understand. Do you mean that :
If the user will not consent to personalized ads and wants to only receive non-personalized ads, then the user has to click "manage options" , select purposes that he wants to give consent. (purpose 1,2,7,9,10) And then he also has to click "vendor preferences" , then select vendors to receive ads from...
Is that correct ?

For only non-personalized ads ?
No user will do that. And eventually, if the user does not consent to personalized ads , he will not receive ANY ads.
Is this really correct ?

ıf this is the case, I have to stop usage of my app if the user does not consent to personalized ads. How can I check that ?

Test Dvd

unread,
Dec 23, 2023, 3:29:58 AM12/23/23
to Google Mobile Ads SDK Developers
What you say is totally correct

Enter the discord group that will surely help you better:

ilker...@gmail.com

unread,
Dec 23, 2023, 5:37:40 AM12/23/23
to Google Mobile Ads SDK Developers
OK. I joined the Discord group, but I don't wanna ask something which might probably been discussed several times. Do you know where I exactly should look at ?
Or you could directly send me the solution , maybe ?

Test Dvd

unread,
Dec 24, 2023, 10:14:47 AM12/24/23
to Google Mobile Ads SDK Developers
Ask what you want.

People will respond to you better than here

Mobile Ads SDK Forum Advisor

unread,
Dec 26, 2023, 2:47:14 PM12/26/23
to testear....@gmail.com, google-adm...@googlegroups.com
@ilkeraktuna

For a user to consent to non-personalized ads, that is correct. If a user does not consent to ads, they will receive Limited ads, which in practice is likely to result in no ad returned from the ad server. 


If you want to check if a user consented to personalized ads, see How to read consent choices for more information. 

Al Araf

unread,
Dec 26, 2023, 8:44:31 PM12/26/23
to Google Mobile Ads SDK Developers


শনিবার, ১৬ ডিসেম্বর, ২০২৩, ৭:০২:৫০ PM UTC+6-এ ilker...@gmail.com লিখেছেন:
Framework for a Better Ads Experience Program (October 2018).pdf

Mobile Ads SDK Forum Advisor

unread,
Dec 26, 2023, 9:47:38 PM12/26/23
to alara...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.
 

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


Thanks,
 
Google Logo Mobile Ads SDK Team


Mobile Ads SDK Forum Advisor

unread,
Dec 27, 2023, 12:47:22 PM12/27/23
to alara...@gmail.com, google-adm...@googlegroups.com
Hello,

This is the correct behavior. When a user does not give consent, they will be attempted to serve a limited ad, which is inherently limited in nature and can result in a "no fill" which is the error you are seeing. See our Ad serving modes guide for more information. 

Thanks,
Justin

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