Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android AdRequest returns only onAdFailedToLoad AdRequest.ERROR_CODE_NO_FILL

Tags:

android

admob

My application has been on the Google Play store for a month and everything was working fine. Two days ago I added it to the "Designed for families" category. I received acceptance and congratulations from the Google team. Since this, my Interstitials have stopped showing. I receive AdRequest.ERROR_CODE_NO_FILL.

InterstitialAd interstitialAd;   
Bundle extras = new Bundle();
extras.putBoolean("is_designed_for_families", true); 

AdRequest adRequest = new AdRequest.Builder()
        .addNetworkExtrasBundle(AdMobAdapter.class, extras)
        .build();
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId(InterstitialSample.AD_UNIT_ID);
interstitialAd.loadAd(adRequest);
interstitialAd.setAdListener(new AdListener() {
        @Override
        public void onAdLoaded() {
            Log.d("Tim", "OK");
        }

        @Override
        public void onAdFailedToLoad(int errorCode) {
            String message = String.format("onAdFailedToLoad (%s)", InterstitialSample.getErrorReason(errorCode));
            Log.d("Tim", message);
        }
    });

I didn't change the package name. Also, I tried changing the AD_UNIT_ID with no success.

like image 595
Tim Kruichkov Avatar asked Jun 10 '15 06:06

Tim Kruichkov


2 Answers

There doesn't appear to be anything wrong with your code. I think you're receiving a genuine "no fill" response.

Ads that are deemed as child- and family-friendly are a subset of the broader ads pool. If you show ads today, after opting-in to the Designed for Families program, you might notice fewer filled impressions and lower revenue. We're working on increasing the pool of ads that are eligible to serve to DFF apps.

like image 63
RedBrogdon Avatar answered Nov 04 '22 08:11

RedBrogdon


It is not a bug. Just a few ads has characteristics "for children 5 years" or "for children 8 years". Remove your app from "Design for families" category for showing ads or wait until there will be advertising with similar characteristics.

like image 27
Tim Kruichkov Avatar answered Nov 04 '22 07:11

Tim Kruichkov