1
votes

enter image description here

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.

Maximum time it showing me:

I/Ads: No fill from ad server. W/Ads: Failed to load ad: 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.

Notes:

  • It showing demo ad when i test in TestDevice
  • Problem occurring only non test devices
  • Rare cases it successfully return ad.

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

1
looks like problem with AdSize, try setting up all correct ad sizes . refer to this link support.google.com/dfp_premium/answer/177203#defineAmod Gokhale
you have Google or Firebase dependencies?Pavel Poley

1 Answers

3
votes

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.

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.

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. 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.

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.

Thanks :)