Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Admob constantly returns AdRequest.ERROR_CODE_NO_FILL?

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

enter image description here

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

like image 274
Tai Tran Avatar asked Feb 25 '14 06:02

Tai Tran


People also ask

What is Adrequest?

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.

How do I fix error code 3 on AdMob?

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.

Why is my AdMob account not showing ads?

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 AdMob take to show ads?

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.


1 Answers

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

like image 181
Tai Tran Avatar answered Sep 29 '22 01:09

Tai Tran