【问题标题】:Android AdMob - Requesting Consent from European UsersAndroid AdMob - 请求欧洲用户的同意
【发布时间】:2021-01-12 19:06:07
【问题描述】:

我根据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

【问题讨论】:

  • 是否提供了正确的发布者 ID?例如String[] publisherIds = {"pub-0123456789012345"};
  • 我正在尝试使用新版本 - developers.google.com/admob/ump/android/quick-start(不是 LEGACY)。新版本在任何地方都没有publisherIds 参数。

标签: android admob gdprconsentform


【解决方案1】:

您需要按照此处https://support.google.com/admanager/answer/9770970 所述设置一个资金选择帐户

【讨论】:

  • 但是需要特别要求才能拥有一个帐户,太好了!现在我有理由将其删除。
【解决方案2】:

我在第一次设置后才得到这个响应。我通过更改 Admob 本身的一些设置来解决它。

Google Admob -> 隐私和消息传递 -> GDPR(卡)

创建一条实际显示给用户的消息(同意/不同意/管理选项等),我相信这是出现此错误时实际发现的内容。有许多切换按钮来确定显示哪条消息(个性化广告/基本广告/等)。

还有年龄限制广告的功能,如果您要为儿童发布应用,这将非常有用。

【讨论】:

    猜你喜欢
    • 2018-11-12
    • 2018-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-01
    • 1970-01-01
    • 2014-03-05
    • 2018-01-13
    相关资源
    最近更新 更多