简体   繁体   English

装有Android的AdMob无法展示广告并返回错误代码3

[英]AdMob with Android doesn't show ads and return error code 3

I created in AdMob an application to get ad id. 我在AdMob中创建了一个用于获取广告ID的应用程序。 Everything worked ok and advertising was shown. 一切正常,并显示了广告。 After I published the application in Play advertising stopped showing up. 在Play上发布该应用程序后,广告停止显示。 Returns "code code 3". 返回“代码代码3”。 But if this ads id I used in another application then the advertisement is shown. 但是,如果我在另一个应用程序中使用了此广告ID,则会显示该广告。 And the original application does not work advertising not with one of the other ads id. 并且原始应用程序不能与其他广告ID之一一起使用而不能进行广告。 I think may app package may be blocked, but I have not notification for it. 我认为可能应用程序包可能已被阻止,但我没有为此通知。

According to documentation :- 根据文档:

 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

Which means:- 意思是:-

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. 问题是AdMob并不总是有一个广告可为每个请求返回。 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. 特别是在您刚刚注册了AdMob发布商ID的情况下,可能会发生这种情况,因为新ID开始返回广告需要一些时间和多次请求。

Another reason your fill rate may be low is that you don't have AdSense backfill enabled, or you have filtered out some ads. 填充率较低的另一个原因是您没有启用AdSense补余,或者您滤除了一些广告。 Check your app settings to see if that is the case. 检查您的应用设置,看是否是这种情况。

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

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