after immigrating my Admob to Google Play Services. I always get this error code
AdRequest.ERROR_CODE_NO_FILL
Here is explanation:
ERROR_CODE_NO_FILL The ad request was successful, but no ad was returned due to lack of ad inventory.
And I think it was implemented successful and I waited so long time (3 days) but no Ads return instead of empty space T.T
Here are my code details:
<LinearLayout android:id="@+id/ad_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" </LinearLayout>
adLayout = (LinearLayout) view.findViewById(R.id.ad_layout);
adView = new AdView(getActivity()); adView.setAdUnitId(Config.AD_PUBLISH_KEY); adView.setAdSize(AdSize.SMART_BANNER); adLayout.addView(adView); AdRequest adRequest = new AdRequest.Builder() .build(); adView.loadAd(adRequest);
03-09 12:46:50.765: I/Ads(2453): Use AdRequest.Builder.addTestDevice("28F0E937BC5EDD2ED24E3F7540AE8251") to get test ads on this device.
03-09 12:46:50.765: I/Ads(2453): Starting ad request.
03-09 12:46:50.867: W/ResourceType(2453): getEntry failing because entryIndex 13 is beyond type entryCount 8
03-09 12:46:50.867: W/ResourceType(2453): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
03-09 12:46:50.867: E/GooglePlayServicesUtil(2453): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
03-09 12:46:51.265: I/Ads(2453): No fill from ad server.
03-09 12:46:51.265: W/Ads(2453): Failed to load ad: 3
It 's looked good but no Ads return, but when I extracted Admob code to new clean Android project, It worked fine, I think it is configuration problem, any helps are highly appreciated :D
An ad request is counted whenever your site requests ads to be displayed. It is the number of ad units that requested ads (for content ads) or search queries (for search ads). We report an ad request each time a request was sent, even if no ads were returned.
Google throws error code 3 for many reasons. One of the official reason is that there is no Ads in the Google Server. This Error is also caused when you change your Keystore after implementing the Ad to previous Keystore. If you have changed your Keystore then you can fix this error just by replacing the Ad Unit.
Ads won't show if you haven't integrated the Google Mobile Ads SDK correctly. Is your ad implementation code working properly? Test your implementation code to check that ads can show. You can also use ad inspector to test your app's ad serving.
How long does it take for ads to begin appearing after the first ad request? When apps are newly registered with AdMob, it typically takes up to an hour and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately. Note: In some cases, it may take longer than an hour.
Thank for your attention and help.
I found that if I modify the package id, the Ads show, It probably was added to Admob blacklist, so not any Ads return, I also attach my code to prove my statement, again thank you all
Tai Tran
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With