Admob Interstitial Ad showing black with new Ad unit ID

筅森魡賤 提交于 2019-12-13 16:15:38

问题


i have created one app and i am using admob Interstitial Ads. As i have created new Interstitial Ad unit ID for that app but ad is showing black with close button, but if i use my old applications Ad unit ID ads will show up. I dont know why this issue is happening? Thanks.


回答1:


For a newly created ad unit it may take some time before getting live ads. Add your device as a test device and check with test ads. They should render fine.

AdRequest request = new AdRequest.Builder()
    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)        // All emulators
    .addTestDevice("AC98C820A50B4AD8A2106EDE96FB87D4")  // An example device ID
    .build();



回答2:


This happened to me (the cross didn't even appear) and I have the Internet permission missing in the Manifest:

  <uses-permission android:name="android.permission.INTERNET" />

I think there are a lot of reasons why this happens.



来源:https://stackoverflow.com/questions/34608474/admob-interstitial-ad-showing-black-with-new-ad-unit-id

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