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 the explanation:

ERROR_CODE_NO_FILL The ad request was successful, but the ad was not received due to lack of advertising resources.

And I think it was implemented successfully, and I have been waiting for so long (3 days), but there are no ads instead instead of empty space TT

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 looked good, but the ad didn't return, but when I extracted the Admob code for a new clean Android project, it worked fine , I think this is a configuration problem, any help is much appreciated: D

+3
4

.

, , , , , Admob , , , ,

+2

, Android , , .

  • GoogleAdMob Jar
  • GoogleAdMob
  • GoogleAd AdView XML , adunitId
  • , , AdMob, .

, .


adunitId, .

0

From what I understand, this is because the server is not returning ads. Perhaps this is not something that can be prevented with the code in your application, but have it configured for testing?

adRequest.setTesting(true);
0
source

It looks like AdMobs just can't provide enough advertising for your application. They have no ads. Here is their explanation of what is happening and how you can increase the fill rate. Hope this helps.

0
source

All Articles