updated to iOS4.1 and iAd “test advertisment” not showing up on simulator

邮差的信 提交于 2019-12-22 10:58:25

问题


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.

Thanks.

UPDATE:

Can someone please let me know if this problem also shows him in the console:

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}


回答1:


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.




回答2:


it seems that xcode 3.2.4 with iOS4.1 does not support iAd. but i am downgrading the xcode to 3.2.3 with iOS4.0 and still facing the problem of iAds testing does not display.

Any other reason.




回答3:


I encountered the same problem. It turns out that my certificates / provisioning profiles were all out of date. Once I updated them, the problem went away without any further work.



来源:https://stackoverflow.com/questions/3841325/updated-to-ios4-1-and-iad-test-advertisment-not-showing-up-on-simulator

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