开发者

iAd: How to simulate errors?

In my didFailToReceiveAdWithError I want t开发者_运维百科o hide iAd banner and show banner from other ad provider.

How do I simulate error call?

Note: closing the internet connection is not an option since I still need it for the other ad provider.


Go into your settings -> Developer -> fill rate under iAd settings and select 0%.


You'll get errors regularly when running a test config. The service does this intentionally to help you test. You can also just call your didFailToRecieveAdWithError method from your didRecieveAd method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜