已更新为iOS4.1,iAd的“测试广告"没有出现在模拟器上
我按照教程中的说明添加了iAd,在我的应用中,它始终称为didFailToReceiveAdWithError
. bannerViewDidLoadAd
永远不会被调用.我知道我应该看到一个测试广告"广告,但是什么都没有显示,因为功能bannerViewDidLoadAd
从未被调用.
I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError
. bannerViewDidLoadAd
is never invoked. I know I'm supposed to see a "test advertisment" Ad, but nothing shows up, because the function bannerViewDidLoadAd
is never being invoked.
我研究了其他问题,但没有找到答案... 本来应该添加代码,但是我怀疑这更多是我和史蒂夫之间的误会.
I've looked into other questions, but didn't find an answer... I would have added code, but I suspect this is more of a misunderstanding between me and Steve.
谢谢.
更新:
有人可以让我知道这个问题是否还在控制台中显示出来:
Can someone please let me know if this problem also shows him in the console:
未处理的错误(没有委托或委托未实现didFailToReceiveAdWithError :):错误Domain = ADErrorDomain代码= 5操作无法完成.横幅视图可见但不包含内容" UserInfo = 0xfdd4070 {ADInternalErrorCode = 5 ,NSLocalizedFailureReason =横幅视图可见,但没有内容}
Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=5 "The operation couldn’t be completed. Banner view is visible but does not have content" UserInfo=0xfdd4070 {ADInternalErrorCode=5, NSLocalizedFailureReason=Banner view is visible but does not have content}
首先,在iPhone开发门户中检查应用程序的iAd状态.您必须在那里为您的应用程序启用iAd访问.根据我的经验,这可能需要几个小时才能激活.
First of all, check your iAd status for your application in your iPhone Development Portal. You must enable iAd access for your application there. This might take a couple of hours to activate (in my experience).
此外,我认为用于该应用程序的配置文件决定了应展示哪些广告.它在文档中指出,开发和临时配置文件显示测试广告,而您的应用程序的分布式版本显示常规广告.
Also, I think the provisioning profile used for the application determines which ads should be shown. It states in the documentation that development and ad-hoc profiles show test ads and that the distributed version of your app shows the normal ads.