为什么测试iAd for barebones项目不显示? [英] Why does test iAd for barebones project not display?
问题描述
可能重复:
如何在模拟器中显示测试IAd横幅
在我的应用程序中实施iAd时,我已经非常努力地使用了几个博客和视频。
I have tried really hard, with several blogs and videos, to implement iAd in my application.
它仍然失败
ADBannerView:未处理的错误(没有委托或委托未实现didFailToReceiveAdWithError :):错误域= ADErrorDomain代码= 5无法完成操作。横幅视图是可见但没有内容UserInfo = 0x610c5d0 {ADInternalErrorCode = 5,NSLocalizedFailureReason =横幅视图可见,但没有内容}
并且我的adbannerview永远不会显示。错误消息让我认为视图存在但不可见。
and my adbannerview never displays.The error message makes me think that the view is present but not visible.
可以任何一个请告诉我为什么我无法看到在我的模拟器或设备中测试广告。
can any one please tell me why i am not able to see test advertisement in my simulator or device.
我的代码是在我的旧问题中发布的但结果不多:发布帖子。
请不要发布链接,我已经阅读了很多,并且实现方式相同,但它不适合我,所以我认为这是另一个问题。我也检查了代理设置,以防它出现网络问题。
Please don't post links, I've read a lot and am implementing the same way but it wont work for me, so I think it is another issue. I checked proxy settings too, in case it was a networking issue.
很抱歉这样问!
推荐答案
您的错误消息并未特别指出这一点,但重要的是要知道(2011年5月撰写此答案时)iAds仅限美国,因此,只要您的设备(或模拟器)认为您不在美国境内,就不会收到任何广告。
Your error message doesn't indicate this in particular, but it's important to know that (in May 2011 when this answer was written) iAds are US-only, so as long as your device (or the simulator) thinks you're outside of the US you won't receive any ads.
这篇关于为什么测试iAd for barebones项目不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!