android interstitial ad is not diplaying

偶尔善良 提交于 2020-01-03 03:04:07

问题


android interstitial ad is displaying for test device

AdRequest adRequest = new AdRequest.Builder()
         .addTestDevice("XXXXXXXXXXXXXX")
                .build();
        interstitial.loadAd(adRequest);

But after publishing(removed the "addTestDevice" line), I cannot see any ad. It always returns error code "ERROR_CODE_NO_FILL".(from logcat)

I searched a lot, but couldn't get a satisfactory answer. Is it one of the android's million bugs?

The below is my admob dashboard screenshot. It has some few requests, but no impression. This is not due to my code problem as I am displaying the ad, but loading itself fails after request : ERROR_CODE_NO_FILL


回答1:


NO_FILL is a standard response. It means that you made a request on the ad network and the ad network has no inventory for you.

The solution is to use mediation to hand off to other ad networks when the first doesn't have any fill. Admob provides a good out of the box mediation.



来源:https://stackoverflow.com/questions/27068037/android-interstitial-ad-is-not-diplaying

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!