开发者

iAd: How to simulate errors?

开发者 https://www.devze.com 2023-02-06 06:02 出处:网络
In my didFailToReceiveAdWithError I want t开发者_运维百科o hide iAd banner and show banner from other ad provider.

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

精彩评论

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