Why does test iAd for barebones project not display? [duplicate]
Possible Duplicate:
how to display test IAd banner in the simulat开发者_如何学JAVAor
I have tried really hard, with several blogs and videos, to implement iAd in my application.
It still fails with
ADBannerView: 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=0x610c5d0 {ADInternalErrorCode=5, NSLocalizedFailureReason=Banner view is visible but does not have content}
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.
My code is posted in my old question but not much result: old post.
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.
Sorry to ask like this!
The ad has failed to load (that is why it wanted to call the missing didFailToReceiveAdWithError: delegate method). According to the docs, you are supposed to hide the view when you receive this error, so that the user doesn't have to stare at the ugly blank spot.
You can see what is the reason for the failed ad load if you implement the didFailToReceiveAdWithError: method and look at the error passed there. The most common cause is not enough inventory - it happens even with the test ads (to emulate real life I guess).
HI all finally i solved problem my self none of the blog didnt give any solution.I am not getting Test ad in the simulator it is coming in the device only by changing of the internal proxy settings.Its good experience for me and also my suggestion is while your operating with IOS device make sure to take proxy free device so that at least you can eliminate some of the issue related to proxy, dont forget to work proxy related stuff at the end product:)
Thanks for all of your great support.
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.
精彩评论