Android应用AdMob GDPR授权表单发布者配置错误求助
AdMob UMP SDK非测试环境GDPR授权表单加载失败问题解决
问题场景
我在Android应用中集成AdMob广告,发送广告请求前通过com.google.android.ump:user-messaging-platform SDK调用GDPR授权表单。
测试环境下使用以下代码可正常加载授权表单:
val debugSettings = ConsentDebugSettings.Builder(activity) .setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA) .addTestDeviceHashedId("-----------------") .build() val params = ConsentRequestParameters.Builder().setConsentDebugSettings(debugSettings).build()
但切换到非测试环境后,应用启动时收到错误:
Publisher misconfiguration: Failed to read publisher's account configuration; no form(s) configured for the input app ID. Verify that you have configured one or more forms for this application and try again. Received app ID: ----------
出现错误后,授权表单无法显示,AdMob广告请求也无法正常发送。
解决方法
在AdMob后台创建并完善GDPR授权表单,同时将该表单与对应的应用ID进行关联,即可解决此问题。
内容的提问来源于stack exchange,提问作者Mohammadreza
相关产品推荐
相关产品推荐

