Why AdMob returns NO FILL

I am using the AdMob view in an Android application, but I canโ€™t get any ad in the application.

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

EDIT: I am using GoogleAdMobAdsSdk-4.1.1. The release notes for the Google AdMob SDK for version 4.1.0 say:

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

Since the ad has been added 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 also added an AdListener to adview, and the onFailedToReceiveAd callback method is called on each loadAd:

 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 someone tell me what this error code means?

+6
source share
3 answers

To answer the question:

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

First of all, this meant that I requested an ad of size AxB, but the backend did not have ads of this size to show. It is important that the size you request leaves resources in the AdMob / DFP backend systems.

Secondly, their API states that the first time you request an ad for a specific ad unit, you should wait up to two minutes before the ads start running. I do not know if this is because I am not located in the USA, but these two minutes often become at least 20 minutes, if not several hours for me.

+1
source

I get a "No Fill" response when I make an ad request in test or non-test mode. What should I do?

In the "Test" and "Do not test" modes, depending on various parameters, such as server load, unavailability of targeted ads, etc., the ad server may send a "No fill" response. Try reloading your ad after a while to continue receiving ads. Despite the fact that the ad space is missing "No fill", you can write us your requests.

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

+1
source

This essentially means that there are currently no AdMob ads for your FILL request. Launch AdMob in test mode and you can see it.

 request.setTesting(true); 
0
source

Source: https://habr.com/ru/post/895249/


All Articles