iAd 在模拟器上有效,但在设备上无效
我正在使用 iAd 更新应用程序。当前版本有 iAd,一切都很好。但这些变化已经足够大了,我想在提交更新之前再次测试广告。
当我在模拟器上测试 iAd 时,我毫无问题地收到了测试广告。当我尝试在设备上测试它时,我得到的只是对 didFailToReceiveAdWithError 的调用。错误的描述是:
“操作无法完成。广告库存不可用。”
或:
“操作无法完成。未知错误。”
鉴于此,我如何确保广告能够在更新后的应用程序中正常运行?
I am updating an app with iAd. The current version has iAd, and everything works great. But the changes have been substantial enough that I want to test the ads again before I submit the update.
When I test iAd on the simulator, I get the test advertisement with no problem. When I try to test it on the device, all I get are calls to didFailToReceiveAdWithError. The descriptions of the error are either:
"The operation couldn't be completed. Ad inventory unavailable."
or:
"The operation couldn't be completed. Unknown error."
In light of this, how can I make sure the ads will work in the updated app?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我处理“未知错误”消息花了近 9 个小时。对我来说,我的 iPod touch 已将其重置为 1970 年。我不小心让电池电量耗尽,时间和时间都被重置了。日期被推迟了。我从来没有费心将其设置回来,因为我不经常使用它。一旦我将日期设置为当前日期,该日期和其他内容就开始正常工作(应用内购买也被搞砸了)。
I dealt with the "Unknown error" message for close to 9 hours. For me, my iPod touch had reset itself to 1970. I accidentally let the battery drain and the time & date got set back. I never bothered to set it back because I don't use that often. Once I set the date to the current date, that and other things began to work correctly (in-app purchases were also screwed up).
确保您已设置 ADBannerView 委托。
Make sure you have set the ADBannerView delegate.