onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory when using admob with adwhirl

孤街浪徒 提交于 2019-11-26 11:09:55

问题


i just want to know if this problem is server side...or i must fix something in my code...

onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory

I\'m using admob with adwhirl to show ads in my android application.


回答1:


If you are getting this error, then your code is correct. The issue is that AdMob does not always have an ad to return for every request. This may happen particularly if you have just registered your AdMob publisher ID, as it takes some time and multiple requests before the new ID starts returning ads.

Another reason your fill rate may be low is that you don't have AdSense backfill enabled, or you have filtered out some ads. Check your app settings to see if that is the case.

Finally, a test you can run to see if your AdWhirl code is implemented correctly is to request a test ad. You can do this by specifying test mode in AdWhirl:

AdWhirlTargeting.setTestMode(true);

If you get back a test ad, you'll know your code is working as intended.




回答2:


One of the solutions you could try:

Some times this will happened if you changed language of your Android device to exotic language (Russian for example). Try to change it back to English and AdMob will find appropriate ad for you. Or you could go to the Google Settings->Ads->Reset advertising ID




回答3:


I've just found that such error is shown if your AdMob account has been banned. But it works with a test device ID.




回答4:


Note that this might happen aswell if you're using (forcing) a custom width and height for the banners.

You should use the ones that DOC states: https://developers.google.com/mobile-ads-sdk/docs/admob/intermediate#play

If you set a custom width and height like:

new AdSize( 521,300 );

It's going to reply with the error you mentioned.




回答5:


I know this was from long time ago, but here's something i did which solved this problem. 1. on your admob account, click on "manage settings" in the app you've created. 2. click on "edit". 3. under "Android Package URL:" leave blank, and then save settings.

*after you'll save, it'll show this box as "market://", which is fine.



来源:https://stackoverflow.com/questions/8778756/onfailedtoreceiveadad-request-successful-but-no-ad-returned-due-to-lack-of-ad

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