I implemented EU User Consent Policy with Android + AdMob according to this article.
The Problem: UserMessagingPlatform
always failed on onConsentInfoUpdateFailure
either on real device (with HashedId) or on simulators.
The error: Invalid response from server: Failed to read publisher's account configuration; try again later.
I have debug settings enabled:
ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(activity)
.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA)
//.addTestDeviceHashedId("CC3EBF623628DAA1E3AD2124AE690FBD")
.build();
ConsentRequestParameters params = new ConsentRequestParameters.Builder()
.setTagForUnderAgeOfConsent(false)
.setConsentDebugSettings(debugSettings)
.build();
Please let me know why it fails? May be I should consider using Legacy version instead?
You need to set up a Funding Choices account as described here https://support.google.com/admanager/answer/9770970
I have just had this response after setting up for the first time. I solved it by changing some settings in Admob itself.
Google Admob -> Privacy & messaging -> GDPR (card)
Create a message that actually gets displayed to the user (consent/do not consent/manage options etc.), I believe this is what is not actually found when this error appears. There are a number of toggle buttons to determine which message gets displayed (personalised ads/basic ads/etc.).
There is also the ability to age restrict ads which will be useful if you're releasing your app for children.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With