Android AdMob - 请求欧洲用户同意

问题描述

我根据 this article 使用 Android + AdMob 实施了欧盟用户同意政策

问题UserMessagingPlatform 在真实设备(带有 HashedId)或模拟器上的 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();

请告诉我为什么失败?我可以考虑改用 Legacy version 吗?

解决方法

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