iAd error “Ad inventory unavailable”

后端 未结 7 1746
感动是毒
感动是毒 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: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.

提交回复
热议问题