updated to iOS4.1 and iAd "test advertisment" not showing up on simulator
I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError
. ba开发者_C百科nnerViewDidLoadAd
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}
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.
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.
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.
精彩评论