广告加载失败:3

huangapple go评论165阅读模式
英文:

Ad failed to load: 3

问题

I am trying to implement ads in my application, but only test ads are appearing, not real ads. In the AdMob tab, it shows that more than 300 requests were made, but there are no ads in the application. Do I need to publish my app on the Play Store for the ads to start appearing? My account has been verified for a long time. In my Logcat, I see this error: "Ad failed to load: 3." What should I do to make the ads start showing?

英文:

Good afternoon, I am try to implement ads in my application but my real AD does not appear, only test AD, in the admob tab it appears that more than 300 requests were made, and there is no ads in the application. Is it necessary for me to publish my app in the play store so that the ads start to appear? And my account has been verified for a long time. In my Logcat appear this error Ad failed to load: 3, what i needed to do , to the ads start to showing?
page admob

Logcat

答案1

得分: 5

根据文档,您收到了以下错误代码:

public static final int ERROR_CODE_NO_FILL

广告请求成功,但由于广告库存不足,未返回广告。

常量值:3

如果您收到此错误,则您的代码是正确的。问题在于AdMob并不总是有广告可以返回每个请求。这可能会特别发生在您刚刚注册了AdMob发布商ID的情况下,因为在新ID开始返回广告之前,需要一些时间和多次请求。

我也遇到了同样的问题。我的应用程序显示了测试广告,但没有真实的广告。在我将应用程序上传到Google Play后,广告开始显示。

要确认您的应用程序正确显示广告,您可以首先将应用程序添加到测试轨道中。

英文:

As per the Documentation you are getting the following error code:

> 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

> 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.
>
> I also faced the same issue. My app was showing test ads, but not real one.
> In my case ads started showing up when I uploaded my app to Google Play.
>
> To confirm your app shows ads correctly, you may first add your app to test tracks first.

答案2

得分: 4

错误代码 3 意味着您的实现是正确的,但您的应用尚未获得 Google AdMob 的批准,因此您必须提交您的应用以进行批准,一旦您的应用获得批准,您的应用将在 24 小时后开始接收广告,并且您必须在 Google AdMob 中设置您的付款方法。

您可以通过以下链接提交您的应用以进行批准:
https://support.google.com/admob/contact/android_APK_submission?hl=en

英文:

Error code 3 means your implementation is correct but your app is not approved by google admob,so you have to submit your app for approval, once your app is approved than your app will start receiving ad after 24 hrs and you have to setup your payment method in google admob.

you can submit your app through this link for approval:
https://support.google.com/admob/contact/android_APK_submission?hl=en

答案3

得分: 0

If you are using app-ads.txt for your app, then you also have to include this line in your app-ads.txt file in order to load ads using the demo ad units:

google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0

Here the official Google AdMob reference: https://developers.google.com/admob/android/test-ads

英文:

If you are using app-ads.txt for your app, then you also have to include this line in your app-ads.txt file in order to load ads using the demo ad units:

google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0

Here the official Google AdMob reference: https://developers.google.com/admob/android/test-ads

答案4

得分: 0

当您的设备未连接到您的AdMob帐户中的测试模式时,会显示此问题。请将您的设备连接到测试模式,然后尝试,此错误将会解决。

链接:https://apps.admob.com/v2/settings/test-devices/list?_ga=2.248138183.156733708.1671428691-2046682952.1670650994&_gac=1.127285631.1670650998.Cj0KCQiA1sucBhDgARIsAFoytUvUl2cXmiqt4eGOJlPz7EOFYJxnbpcLX3uIEhk71c3oHZ3BxMsgBE0aAlkcEALw_wcB&_gl=11ubza84_gaMjA0NjY4Mjk1Mi4xNjcwNjUwOTk0_ga_6R1K8XRD9P*MTY3MTQyODY5MS40LjAuMTY3MTQyODY5MS4wLjAuMA。

英文:

It shows when your device is not connected with Test Mode in your AdMob account. Connect your device with test mode and try this error will resolve.

https://apps.admob.com/v2/settings/test-devices/list?_ga=2.248138183.156733708.1671428691-2046682952.1670650994&_gac=1.127285631.1670650998.Cj0KCQiA1sucBhDgARIsAFoytUvUl2cXmiqt4eGOJlPz7EOFYJxnbpcLX3uIEhk71c3oHZ3BxMsgBE0aAlkcEALw_wcB&_gl=11ubza84_gaMjA0NjY4Mjk1Mi4xNjcwNjUwOTk0_ga_6R1K8XRD9P*MTY3MTQyODY5MS40LjAuMTY3MTQyODY5MS4wLjAuMA..

huangapple
  • 本文由 发表于 2020年8月14日 01:10:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/63400075.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定