24

I'm trying to implement UE consent that lets the user select if he wants personalized ads in Android, using Admob. I'm doing this with "Funding choices", with the user messaging platform.

I followed this quick start guide:

https://developers.google.com/admob/ump/android/quick-start

To simplify, I selected only google in my providers lists.

The problem is, when I simulate a user from the ue, the form shows. But when I choose personalized or non-personalized, the consent status changes to OBTAINED, but the consent type remains in UNKNOWN.

I'm using this versions of admob and ump:

implementation 'com.google.android.gms:play-services-ads:19.3.0'

implementation 'com.google.android.ump:user-messaging-platform:1.0.0'
takluiper
  • 679
  • 2
  • 8
  • 24
  • 6
    I am testing this too. The problem is also that if the user "declined" everything in the options then no ads will be shown anymore. Thats very bad in my opinion.I wrote a feedback to google. I hope they will improve this soon. Also if you choose the layout with the option "decline" then no ads are served anymore. There should be an option to finish the app if the user declined everything so he cannot use the app anymore without ads – Frank Aug 17 '20 at 04:19
  • 1
    I have this issue as well, not sure what's going on but my guess is it's an SDK issue or something. Consenting and not consenting gives me the same results... Unknown – Gary Aug 19 '20 at 00:38
  • 1
    I finally used com.google.android.ads.consent:consent-library:1.0.8 and it works ok. I wasn't able to make the User Messaging Platform work. – takluiper Aug 19 '20 at 08:56
  • Same issue for me too ! Any solution yet ? – EAK TEAM Sep 02 '20 at 07:50
  • Same issue. I was looking to update to their newer model of requesting Ad Consent, as the ads.consent library is listed as legacy. The only option I see is providing non personalized ads for now with this library, which doesn't seem reasonable. I guess this library isn't ready for primetime. – broot02 Sep 06 '20 at 11:06
  • @takluiper does the old library still work? – HasIEluS Mar 18 '23 at 04:05

1 Answers1

4

I was facing the same issue, but a Google Engineer pointed me in the right direction. Apparently this is the default behavior if you're using the IAB TCF v2 framework. The consent type is only applicable to the simplified version of the form. The full conversation can be found here Since the Google documentation is lacking information I had to dig a little deeper to find the answer on the IAB Techlab Github.

To find the Consent status of your user all you need is SharedPreferences(Android) OR NSUserDefaults(iOS) the key value pairs and full explanation can be found here

So to solve your problem be sure to check out the In-App Details section:

  1. An app publisher should embed a CMP SDK – The setup and configuration as well as the protocol for how to initialize the CMP SDK are all proprietary to each CMP SDK. (Google Funding Choices)
  2. Since more than one CMP SDK may be included in publishers' linked SDKs, the publisher must initialize only one of them. The initialized CMP shall set IABTCF_CmpSdkID with its ID as soon as it is initialized in the app to signal to vendors that a CMP is present.
  3. The CMP SDK will determine if GDPR applies to this user in this context. But, a publisher may choose to initialize a CMP dialogue UI manually.
  4. The CMP shall set the NSUserDefaults(iOS) or SharedPreferences(Android) variables and vendors will then be able to read from them directly.
  5. Vendors should listen to IABTCF_* key updates to retrieve new TC data from NSUserDefaults(iOS) or SharedPreferences(Android).

I hope this answers your question, but if your stuck somewhere please let me know!

Alexander
  • 257
  • 1
  • 9
  • 8
    Hi Alexander this still does not solve the problem to show at least "not personalizied" ads to the user. Because the submit button disables all ads. If IABTCF_PurposeConsents is = then the only chance is to reload the form again and again and again ...until the user agrees. Is is very annoying – Frank Oct 14 '20 at 13:37
  • 1
    Hi Frank, I think this is beyond the scope of the question, however I posted another answer [here](https://stackoverflow.com/questions/63464270/how-to-request-non-personalized-admob-ads-with-the-new-unified-messaging-platfor/64245927#64245927). But yes it is very annoying, without certain consents (especially cookies) Google won't be able to serve ads for now.. As to how they will resolve this who knows. Maybe it’s a new dawn in the world of mobile advertising.. – Alexander Oct 14 '20 at 15:03
  • 1
    the answer is not relevant to the question! – Mostafa Onaizan Mar 20 '22 at 01:56
  • What about CCPA? Does Funding Choices provide an end-to-end solution for CCPA as well like it does for GDPR? – Abdul Mateen Apr 20 '23 at 11:20