更新至iOS4.1和iAd“测试广告”没有出现在模拟器上

发布于 2024-09-25 21:56:00 字数 532 浏览 1 评论 0原文

我添加了教程中编写的 iAd,并且在我的应用程序中它始终调用 didFailToReceiveAdWithErrorbannerViewDidLoadAd 永远不会被调用。我知道我应该看到一个“测试广告”广告,但没有显示任何内容,因为函数 bannerViewDidLoadAd 从未被调用。

我研究过其他问题,但没有找到答案...... 我本想添加代码,但我怀疑这更多的是我和史蒂夫之间的误解。

谢谢。

更新:

如果这个问题也显示在控制台中,有人可以告诉我吗:

未处理的错误(没有委托或委托未实现 didFailToReceiveAdWithError:):错误 Domain=ADErrorDomain Code=5 “操作无法完成。横幅视图可见,但没有内容” UserInfo=0xfdd4070 {ADInternalErrorCode=5 , NSLocalizedFailureReason=横幅视图可见,但没有内容}

I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError. bannerViewDidLoadAd is never invoked. I know I'm supposed to see a "test advertisment" Ad, but nothing shows up, because the function bannerViewDidLoadAd is never being invoked.

I've looked into other questions, but didn't find an answer...
I would have added code, but I suspect this is more of a misunderstanding between me and Steve.

Thanks.

UPDATE:

Can someone please let me know if this problem also shows him in the console:

Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=5 "The operation couldn’t be completed. Banner view is visible but does not have content" UserInfo=0xfdd4070 {ADInternalErrorCode=5, NSLocalizedFailureReason=Banner view is visible but does not have content}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

不寐倦长更 2024-10-02 21:56:00

首先,在 iPhone 开发门户中检查应用程序的 iAd 状态。您必须在那里为您的应用程序启用 iAd 访问权限。这可能需要几个小时才能激活(根据我的经验)。

另外,我认为应用程序使用的配置文件决定了应该显示哪些广告。它在文档中指出,开发和临时配置文件显示测试广告,而应用程序的分布式版本显示正常广告。

First of all, check your iAd status for your application in your iPhone Development Portal. You must enable iAd access for your application there. This might take a couple of hours to activate (in my experience).

Also, I think the provisioning profile used for the application determines which ads should be shown. It states in the documentation that development and ad-hoc profiles show test ads and that the distributed version of your app shows the normal ads.

逆光下的微笑 2024-10-02 21:56:00

看来xcode 3.2.4与iOS4.1不支持iAd。
但我将 iOS4.0 的 xcode 降级到 3.2.3 并且
仍然面临iAds测试不显示的问题。

任何其他原因。

it seems that xcode 3.2.4 with iOS4.1 does not support iAd.
but i am downgrading the xcode to 3.2.3 with iOS4.0 and
still facing the problem of iAds testing does not display.

Any other reason.

御弟哥哥 2024-10-02 21:56:00

我遇到了同样的问题。事实证明,我的证书/配置文件都已过期。一旦我更新了它们,问题就消失了,无需任何进一步的工作。

I encountered the same problem. It turns out that my certificates / provisioning profiles were all out of date. Once I updated them, the problem went away without any further work.

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