iAd error “Ad inventory unavailable”

后端 未结 7 1639
感动是毒
感动是毒 2020-12-17 19:49

I\'m adding iAd to my app. Now, in simulator, it works well but when I load it on a device (v4.1) the ADBannerViewDelegate calls bannerView:didFailToReceiveAdWi

相关标签:
7条回答
  • 2020-12-17 20:31

    if you running with a development certificate you will only get test ads even when running on a device. From the iAd Programming Guide:

    While you are developing your application, iAd Network sends test advertisements to your application. To assist you in validating your implementation, the iAd Network occasionally returns errors to test your error handling code. You can also test your error handling support by turning your device’s wireless capability off.

    So you should see the test Ad on the device but you will never see a real live ad.

    0 讨论(0)
  • 2020-12-17 20:34

    Just an additional update, running ad testing on my IPAD I got this error suddently, after banging my head (as others have done) for a while I noticed the time on the IPAD was 8 mins out, both were set on auto but still 8 mins difference, set the IPAD clock manually and error went away!.

    Hope this helps someone.

    0 讨论(0)
  • 2020-12-17 20:44

    Yes, Removing app from device and rebuilding solved it in my case.

    0 讨论(0)
  • 2020-12-17 20:46

    According to the ADBannerView class reference of Apple's documantation iOS Developer Library:

    enum {
    ADErrorUnknown = 0,
    ADErrorServerFailure = 1,
    ADErrorLoadingThrottled = 2,
    ADErrorInventoryUnavailable = 3,
    ADErrorConfigurationError = 4,
    ADErrorBannerVisibleWithoutContent = 5,
    ADErrorApplicationInactive = 6
    };
    typedef NSUInteger ADError;
    
    //ADErrorInventoryUnavailable
    //Indicates that no advertisements are currently available to download.
    //Available in iOS 4.0 and later.
    //Declared in ADBannerView.h.
    

    Therefore it is an exception caused by the server side of the iAd; not the code itself.

    0 讨论(0)
  • For the last 5 days I've been having the same issue. I was getting a valid response before that and the bannerViewDidLoadAd delegate method was been called. Maybe there is something on apple's side? I didn't find anything that implies that, but it's my guess

    0 讨论(0)
  • 2020-12-17 20:55

    It was a latency problem of the iAd Network server that dispatches the ads. I suppose that when the network had ads for my app it began to work fine.

    0 讨论(0)
提交回复
热议问题