Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android AdMob - Requesting Consent from European Users

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?

like image 212
Mike Keskinov Avatar asked Jan 12 '21 19:01

Mike Keskinov


2 Answers

You need to set up a Funding Choices account as described here https://support.google.com/admanager/answer/9770970

like image 127
faizksen Avatar answered Nov 15 '22 06:11

faizksen


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.

like image 32
StephenL Avatar answered Nov 15 '22 07:11

StephenL