AndroidAdMob-请求欧洲用户同意

我根据这篇文章使用Android + AdMob实施了欧盟用户同意政策

问题:在真实设备(使用 HashedId)或模拟器上UserMessagingPlatform总是失败onConsentInfoUpdateFailure

错误来自服务器的无效响应:无法读取发布者的帐户配置;稍后再试。

我启用了调试设置:

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();

请让我知道为什么它失败?我应该考虑使用旧版吗?

回答

您需要按照此处的说明设置 Funding Choices 帐户https://support.google.com/admanager/answer/9770970


以上是AndroidAdMob-请求欧洲用户同意的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>