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