Admob 广告请求始终返回代码 3 [英] Admob ad request always return code 3

查看:23
本文介绍了Admob 广告请求始终返回代码 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的一个 android 应用程序中实现了 Admob.第一次它有一个横幅,在我的应用程序下面添加.但是在 8 项后在 RecylarView 中添加横幅广告后,就会出现问题.90% 的情况下它返回响应代码 3.

I implement Admob in one of my android application. First time it has a banner add bellow of my application. But after adding banner ad in RecylearView after 8 items then problem occurs. 90% cases it returns response code 3.

它显示我的最长时间:

I/Ads:没有来自广告服务器的填充.带广告:未能加载广告:3

I/Ads: No fill from ad server. W/Ads: Failed to load ad: 3

此处响应码:3 表示广告请求成功,但由于广告资源不足,没有返回广告.但其他应用在同一设备上频繁展示广告.

Here response code: 3 means The ad request was successful, but no ad was returned due to lack of ad inventory. But other apps showing ads frequently in same device.

注意事项:

  • 我在 TestDevice 中测试时显示演示广告
  • 仅非测试设备出现问题
  • 在极少数情况下成功返回广告.

谁能帮我从这个问题中恢复过来.我的 ad_unit 或 adMob 有什么问题吗?

Can anyone please help me to recover from this issue.Is there any issue in my ad_unit or adMob?

推荐答案

这里我的代码是正确的.问题是 AdMob 并不总是为每个请求返回一个广告.如果您刚刚注册了 AdMob 发布商 ID,则可能会发生这种情况,因为新 ID 开始返回广告之前需要一些时间和多次请求.

Here my code is correct. The issue is that AdMob does not always have an ad to return for every request. This may happen particularly if you have just registered your AdMob publisher ID, as it takes some time and multiple requests before the new ID starts returning ads.

您的填充率可能较低的另一个原因是您没有启用 AdSense 补余,或者您过滤掉了一些广告.检查您的应用设置,看看是否是这种情况.

Another reason your fill rate may be low is that you don't have AdSense backfill enabled, or you have filtered out some ads. Check your app settings to see if that is the case.

根据文档:-

 public static final int ERROR_CODE_NO_FILL

The ad request was successful, but no ad was returned due to lack of ad inventory.

Constant Value: 3

这意味着:-

如果您收到此错误,那么您的代码是正确的.问题是AdMob 并不总是为每个请求返回一个广告.如果您刚刚注册了 AdMob,这种情况尤其可能发生发布者 ID,因为它需要一些时间和多次请求新 ID 开始返回广告.

If you are getting this error, then your code is correct. The issue is that AdMob does not always have an ad to return for every request. This may happen particularly if you have just registered your AdMob publisher ID, as it takes some time and multiple requests before the new ID starts returning ads.

您的填充率可能较低的另一个原因是您没有AdSense 回填已启用,或者您已过滤掉一些广告.查看您的应用设置,看看是否是这种情况.

Another reason your fill rate may be low is that you don't have AdSense backfill enabled, or you have filtered out some ads. Check your app settings to see if that is the case.

谢谢:)

这篇关于Admob 广告请求始终返回代码 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆