Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does AdMob return NO FILL

I'm using an AdMob view in an android app, but I'm unable to get any ad into the app.

For reference, I've added the view to a ListView as explained by Dan Dyer here

EDIT: I'm using GoogleAdMobAdsSdk-4.1.1. The release notes of Google AdMob Ads SDK for version 4.1.0 says:

"... - Added support for AdRequest.addTestDevice() and AdRequest.setTestDevices(). Note that AdRequest.setTesting() is now deprecated. ..."

This is how the ad is inserted to my ListView:

public View getView(int position, View convertView, ViewGroup parent) {

  // Some other code
  // Reusing convertView etc.

  AdView adView = 
     new AdView((Activity) getContext(), AdSize.BANNER, 
     "/xxxxxx/ca-pub-xxxxxxx/my_ad_unit");
  for (int i = 0; i < adView.getChildCount(); i++) {
    adView.getChildAt(i).setFocusable(false);
  }
  adView.setFocusable(false);
  float density = getContext().getResources().getDisplayMetrics().density;
  int height = Math.round(50 * density);
  AbsListView.LayoutParams params = new AbsListView.LayoutParams(
    AbsListView.LayoutParams.FILL_PARENT, height);

  adView.setLayoutParams(params);
  AdRequest request = new AdRequest();
  request.addTestDevice("xxxxxxxxxxxxxxxxx");
  adView.loadAd(request);

  // other stuff
  // returning convertView
}

I've also added an AdListener to the adview, and on every loadAd, the onFailedToReceiveAd callback method is called:

public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
  Log.d(TAG, "AdMob in list failed to receive ad: " + arg1.name());
}

In logcat I get this message:

08-17 15:22:18.065: AdMob in list failed to receive ad: NO_FILL

Can anyone tell me what this errorcode means?

like image 863
Eric Nordvik Avatar asked Aug 17 '11 13:08

Eric Nordvik


People also ask

How much does AdMob pay per 1000 views 2020?

Video views cost $3.3 per 1,000 views back in January, 2020, went to the lowest point in January, 2021 – $2.9 and this October it is $4.2 per 1,000 video ad views.

Does AdMob only pay for clicks?

No, using AdMob is free. Even better, Google and any third-party ad networks you use will pay you for clicks, impressions, and other interactions with the ads you display in your app.

What is AdMob fill rate?

Fill rate is the percentage of ad requests that get filled by the ad networks you're working with. It's calculated by dividing the number of ad impressions an app actually serves, by the number of times an app requested an ad from a network.


2 Answers

To answer the question:

NO_FILL is returned from AdMob when there is no inventory left to serve in the AdMob/DFP backend.

First of all this meant I was requesting an ad of size AxB, but the backend had no ads of this size left to show. It is important that the size you request has inventory left in the backend systems of AdMob/DFP.

Second, their API states that the first time you request an ad to a specific ad unit, you should expect up to two minutes before the ads start serving. I don't know if it is because I am not stationed in the US, but these two minutes often becomes at least 20 minutes if not several hours for me.

like image 133
Eric Nordvik Avatar answered Nov 15 '22 20:11

Eric Nordvik


I get a 'No Fill' response when I make a request for ads in the Test or Non-Test Mode. What should I do?

In both the Test and Non-Test modes, depending on various parameters such as server load, non-availability of targeted ads, and so on, the Ad Server may send a No Fill response. Try reloading the ad after some time to keep receiving the ads. Although a No Fill is common in the advertising space, you can write to us with your queries.

http://developer.inmobi.com/wiki/index.php?title=Android

like image 37
Sheetal Suryan Avatar answered Nov 15 '22 20:11

Sheetal Suryan