解决“此请求未找到合格的广告"的解决方法在iAd上? [英] What to do to fix "no qualified ads found for this request" on iAd?

查看:120
本文介绍了解决“此请求未找到合格的广告"的解决方法在iAd上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以某种方式在设备上测试iAd时出现此错误消息.

Somehow I got this error message when testing iAd on the device.

"no qualified ads found for this request"

该如何解决?有人有主意吗?在模拟器上没有错误,它成功显示了测试广告"

What to do to fix it? Anyone has any idea? On the simulator there is no error, it succeeds to show the "Test Advertisement"

更新:

这里的真正问题是引发错误的委托没有被调用,在模拟器上有效,在iPhone上无效.这就是问题所在.

The real problem here is that the delegate to raise the error IS NOT BEING CALLED, on the simulator it works, and on the iPhone it does not. That is the issue.

此处有更多详细信息:

正在模拟器中调用此函数:

This function is being called in the Simulator:

- (void)bannerViewDidLoadAd:(ADBannerView *)banner

在设备中调用此函数时:

While this function is being called in the device:

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error

我确实在开发人员门户中启用了iAd,并且我在设备上测试的其他应用确实显示了测试广告.

I did enable the iAd in the developer's portal and other apps that I test on the device DO show the Test Advertisement.

推荐答案

这并不是要修复的错误,而是在没有iAd广告资源可用时的预期响应.这可能是由于多种因素造成的,但最有可能的原因是,目前该系统中没有多少广告,因为该服务是在六天前才启动的. 据苹果公司:

This is not really an error to be fixed, but an expected response when no iAd inventory is available. This may be due to many factors, but the most likely one is that there just aren't a lot of ads in the system right now, seeing as how the service only launched six days ago. According to Apple:

如果您有专门的部分 您的iAd应用程式, 合并横幅视图委托 将处理常见事件, 包括错误.有适当的 委托处理错误维护 客户拥有的视觉体验 通过防止在您的应用中投放广告 出现以下情况时将显示空白横幅 广告不可用.另外,如果 您的应用在以下情况下显示空白横幅 广告没有 显示后,您的应用将被退回 由应用审核小组向您提供 修改才能发布 到App Store.

If you have dedicated a section of your app for an iAd, it's important to incorporate a banner view delegate that will handle common events, including errors. Having the proper delegate to handle errors maintains the visual experience customers have with ads in your app by preventing a blank banner from being displayed when ads are not available. In addition, if your app displays a blank banner when advertisements are not being displayed, your app will be returned to you by the App Review Team for modification before it can be posted to the App Store.

Apple在部分.另请参见关于此问题的讨论.

Apple provides boilerplate code for handling this in the "Working with Banner Views" section of the iAd Programming Guide. See also the discussion around this question.

这篇关于解决“此请求未找到合格的广告"的解决方法在iAd上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆