Android AdMob - Requesting Consent from European Users

Viewed 1541

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?

2 Answers

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.

Related