iPhone iAds: Very inconsistent, sometimes bannerViewDidLoadAd does not get called

我的梦境 提交于 2019-12-11 19:46:12

问题


So I show my iAd banners when I get a callback to: 'bannerViewDidLoadAd'

But I've noticed that sometimes this doesn't get called. I have a constant high-speed internet connection but if I run my app 10 times. 4 of out 10 times it won't show the iAds (i.e., bannerViewDidLoadAd does not get called).

Has anyone else experienced this (and what have you done about this)?


回答1:


This is by design (I'm assuming you're still running in a dev environment) so that you can test your application when an iAd is available and when an iAd isn't available.

While you are developing your application, iAd Network sends test advertisements to your application. To assist you in validating your implementation, the iAd Network occasionally returns errors to test your error handling code. You can also test your error handling support by turning your device’s wireless capability off.

per Apple's documentation



来源:https://stackoverflow.com/questions/4280046/iphone-iads-very-inconsistent-sometimes-bannerviewdidloadad-does-not-get-calle

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