简体   繁体   English

AdMob 广告未在 Android 4.0 和 4.1 上加载

[英]AdMob Ads Not Loading on Android 4.0 & 4.1

Using AdMob SDK v8.3.0 and ads are loading properly on newer versions of Android - all is working as expected.使用 AdMob SDK v8.3.0 并且广告可以在较新版本的 Android 上正确加载 - 一切都按预期工作。

However ads are not showing up for Android 4.0 & 4.1 devices.但是,Android 4.0 和 4.1 设备不会显示广告。

On one 4.1 test device LogCat shows:在一台 4.1 测试设备上 LogCat 显示:

There was a problem getting an ad response. ErrorCode: 0

On another 4.1 and 4.0 test devices there are no error messages at all.在另一个 4.1 和 4.0 测试设备上根本没有错误消息。 Seems like ads are silently failing.似乎广告在默默地失败。

Does anyone know how to resolve this?有谁知道如何解决这个问题?

Just found a solution to my own problem.刚刚找到了解决我自己问题的方法。

For whatever reason I needed to Reset Advertising ID.无论出于何种原因,我都需要重置广告 ID。 Not sure why this had to be done, but just confirmed on 2 x Android 4.1 and 1 x Android 4.0 test devices.不知道为什么必须这样做,但刚刚在 2 x Android 4.1 和 1 x Android 4.0 测试设备上确认。

Android 4.1 Instructions:安卓 4.1 使用说明:

  • Settings -> Accounts / Google -> Ads -> Reset Advertising ID设置 -> 帐户 / Google -> 广告 -> 重置广告 ID

Android 4.0 Instructions:安卓 4.0 使用说明:

  • Apps -> Google Settings App -> Ads -> Reset Advertising ID应用程序 -> Google 设置应用程序 -> 广告 -> 重置广告 ID

After this Ads are loading as expected.在此之后,广告按预期加载。

Hope this helps someone experiencing similar issue.希望这可以帮助遇到类似问题的人。 If anyone could explain why this occurred in the comments, it would be appreciated and add to understanding of the issue.如果有人可以解释为什么会在评论中出现这种情况,我们将不胜感激并增加对问题的理解。

只需在设置-> 应用程序管理中清除您的 Google Play 应用程序和服务的数据,在 android 4.1 samsung Galaxy win 上为我工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM