开发者

iAd and didFailToReceiveAdWithError

开发者 https://www.devze.com 2023-02-05 16:11 出处:网络
I\'m getting a \"didFailToReceiveAdWithError\" message in the console while running in the simulator. Is this the same method as the \"didFailToReceiveAdWithError\" method referred to in the message?

I'm getting a "didFailToReceiveAdWithError" message in the console while running in the simulator. Is this the same method as the "didFailToReceiveAdWithError" method referred to in the message?

My view controller implements ADBannerViewDelegate protocol, and in particular the -(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error method. The Ad's delegate is set to the view controller.

I haven't found any other methods resembling a "didFailToRecei开发者_如何学CveAdWithError" in the docs.


Yes. That message in the console is indeed corresponding to the iAd's delegate function. It is normal to get this as the test iAd fill rate is not 100%. When there are no ad to serve, this delegate (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error will be called by iOS.

0

精彩评论

暂无评论...
验证码 换一张
取 消