【发布时间】: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