iAd 在模拟器上有效,但在设备上无效

发布于 2024-09-26 19:17:16 字数 266 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

始终不够爱げ你 2024-10-03 19:17:16

我处理“未知错误”消息花了近 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).

停顿的约定 2024-10-03 19:17:16

确保您已设置 ADBannerView 委托。

Make sure you have set the ADBannerView delegate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文