IAd Banner does not appear, except for the code and the right .... I can not find a solution

I have a problem with iAd I followed many tutorials that are of excellent quality, and a few days ago I was able to correctly insert iAd into the test application. Now this method does not work, even if I try to create a new application with only iAd as a test! I cannot understand that the problem seems to me in the following text:

I am using xCode 5 and iOS 7 SDK

iAD prova [3158: a0b] [AppDeveloper] ADBannerView: unhandled error (delegate or delegate did not implement didFailToReceiveAdWithError :): Error Domain = ADErrorDomain Code = 3 "The operation could not be completed. UserInfo = 0xa5aaaf0 {ADInternalErrorrainain = 3Interalrrrorain = 3 NSLocalizedFailureReason = inventory not available} 2013-09-20 12: 24: 59.887 iAD prova [3158: a0b] [AppDeveloper] ADBannerView: unhandled error (delegate or delegate did not implement didFailToReceiveAdWithError :): Error Domain = ADErrorDomain Code = 5 "Operation not can be completed. The banner view is visible, but has no content "UserInfo = 0xa5af280 {ADInternalErrorCode = 5, ADInternalErrorDomain = ADErrorDomain, NSLocalizedFailureReason = The banner view is visible, but has no content}

There are errors in the code, I read about this user "ajay", who posted this:

Hello everyone, finally, I solved the problem myself, none of the blogs gave any solution. I do not receive a test ad in the simulator, which comes to the device only by changing the internal proxy settings. A good experience for me, as well as my suggestion, is that when working with an iOS device, make sure that you are using a proxy device so that at least you can fix some problems related to the proxy server, be sure to work with the proxy materials in the final product :)

But I can't figure out how I should act. Help me guys, thanks.

+6
source share
2 answers

Alternatively, you can change your fill rate in Settings.app. Set it to 100% if you want it to be displayed all the time.

Go to Settings.app and find Developer optionSet your fill rate

+5
source

I got the same error message both on a real device and on a simulator with iOS 7. But the same code works well, and the iAd banner can show on the iOS 6 simulator. It seems that the Apple iAd server does not provide any ads for iOS 7. Perhaps this is a mistake.

+1
source

Source: https://habr.com/ru/post/954244/


All Articles