0

我已经实现bannerView didFailToReceiveAdWithError:

- (void)bannerView(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error 
{
    _bannerView.hidden = NO;
}

你能告诉我为什么当错误出现时它不会消失吗?

我在日志中得到这个:

2012-10-27 15:40:57.367 MinePedia[22467:11903] [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=0x7192530 {ADInternalErrorCode=3, ADInternalErrorDomain=ADErrorDomain, NSLocalizedFailureReason=Ad inventory unavailable}
4

1 回答 1

1

确保_bannerView.delegate = self;在创建 AdBannerView 实例后拥有

于 2012-10-27T15:48:48.373 回答