I am using already working AdunitId and error code 3. Other apps with this AduntId is working fine. Here is my code.
adView = (AdView)findViewById(R.id.ads);
adrequest =new AdRequest.Builder().build ;
adView.loadAd(adrequest);
I am using already working AdunitId and error code 3. Other apps with this AduntId is working fine. Here is my code.
adView = (AdView)findViewById(R.id.ads);
adrequest =new AdRequest.Builder().build ;
adView.loadAd(adrequest);
Error Code 3 : ERROR_CODE_NO_FILL
Description (Dev Docs Link) : The ad request was successful, but no ad was returned due to lack of ad inventory.
Why is it Happening : Advertisers can target specific regions, platforms and user profiles based on business relevance, which can sometimes result in lower availability of Ads for a particular region or user profile. Error code suggests that the implementation is correct, and that the Ad Request was not filled because of lack of availability of a suitable Ad at that particular instant of time when an Ad Request was sent from the app.
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.
You can add a .setTestMode(True) so that you know its working
You can find about how with a search