Reputation: 11898
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?
Upvotes: 10
Views: 3740
Reputation: 122
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.
Upvotes: 6
Reputation: 307
You need to set up a Funding Choices account as described here https://support.google.com/admanager/answer/9770970
Upvotes: 6