本文介绍了Android AdRequest仅在adFailedToLoad AdRequest上返回。ERROR_CODE_NO_FILL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序已经在Google Play商店上使用了一个月,并且一切正常。两天前,我将其添加到为家庭设计类别中。我得到了Google团队的认可和祝贺。此后,我的插页式广告已停止展示。我收到 AdRequest.ERROR_CODE_NO_FILL

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);
        }
    });

我没有更改包裹名称。另外,我尝试更改 AD_UNIT_ID 没有成功。

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

推荐答案

它不是错误。仅有几则广告具有针对5岁儿童或针对8岁儿童的特征。从为家庭设计类别中删除您的应用以显示广告,或等到出现具有类似特征的广告。

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.

这篇关于Android AdRequest仅在adFailedToLoad AdRequest上返回。ERROR_CODE_NO_FILL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:57