问题
I have a problem with iAd I have followed many tutorials that are of excellent quality, and a few days ago I was able to correctly insert iAd in a test application. Now the method does not work even if I try to create a new application with only the iAd as a test! I can not understand the problem appears to me the following text:
I use xCode 5 and iOS 7 SDK
iAD prova[3158:a0b] [AppDeveloper] ADBannerView: Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=3 "The operation couldn’t be completed. Ad inventory unavailable" UserInfo=0xa5aaaf0 {ADInternalErrorCode=3, ADInternalErrorDomain=ADErrorDomain, NSLocalizedFailureReason=Ad inventory unavailable} 2013-09-20 12:24:59.887 iAD prova[3158:a0b] [AppDeveloper] 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=0xa5af280 {ADInternalErrorCode=5, ADInternalErrorDomain=ADErrorDomain, NSLocalizedFailureReason=Banner view is visible but does not have content}
There are errors in the code, I read about this user "ajay" who posted this:
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:)
But I can not understand how I should proceed Help me guys thanks
回答1:
Also, you can change your fill rate in Settings.app. Set it to 100% if you want it to show up all the time.
回答2:
I got the same error message on both a real device and a simulator with iOS 7. But same code works well and iAd banner can show on iOS 6 simulator. Looks like Apple's iAd server does not provide any Ad for iOS 7. Maybe it is a bug.
来源:https://stackoverflow.com/questions/18914553/iad-banner-does-not-appear-but-the-code-and-right-i-can-not-find-a-solution