iAd没有在iPad上工作 [英] iAd not working on iPad

查看:102
本文介绍了iAd没有在iPad上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个使用iAd的 iPhone应用程序。在iPhone模拟器和设备上它工作正常。它已经在App Store上了。

I made an iPhone Application which uses iAd. On the iPhone Simulator and the Device it works fine. It already is on the App Store.

今天,我的一位客户告诉我iAd没有出现在iPad上。因此,我在iPad模拟器上构建我的应用程序并且它没有显示,而iPhone模拟器/ iPhone设备的工作方式与预期的一样。

Today, one of my customers told me that iAd is not showing up on the iPad. So I build my app on the iPad Simulator and it is not showing up, while the iPhone Simulator / iPhone Device work like expected.

我从未测试过它之前的设备显示内容,所以这不是错误。

I never test which device it is before displaying something, so this can not be the error.

这个没有显示任何错误: - (void)bannerView:(ADBannerView * )banner didFailToReceiveAdWithError:(NSError *)错误

This one does not show up any error: - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error

任何想法?

推荐答案

我有类似的问题。对我来说唯一的解决方案是使应用程序具有普遍性。一旦应用程序通用,iAds就开始工作了。

I had a similar problem. The only solution for me was to make the application universal. Once the application was universal the iAds start working.

您可能会注意到,即使是来自iAds套件的一些应用程序,Apple也无法运行。他们在这里的描述中提到了这方面的内容:

You might notice that even some of applications from iAds suite form Apple did not work. And they mention somehting in this regard in their description here:

http://developer.apple.com/library/ios/#samplecode/iAdSuite/Introduction/Intro.html


BasicBanner和ContainerBanner配置为支持iPhone和iPad惯用语,TabbedBanner和NavigationBanner仅支持iPhone惯用语,SplitViewBanner仅支持iPad惯用法。

The BasicBanner and ContainerBanner are configured to support both iPhone and iPad idioms, the TabbedBanner and NavigationBanner to support only the iPhone idiom, and the SplitViewBanner to support only the iPad idiom.

我发现的唯一区别是通用与iPhone应用程序设置(target-> SUmmary-> Device combobox)。

The only difference I have found was the universal vs. iPhone app settings (target->SUmmary->Device combobox).

但是,如果我没记错的话,我的 - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error 被叫了。该错误说明没有可用的iAd。

Hoever, if I remember correctly, my - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error was called. The error was saying something about that there is no available iAds.

此外,我只尝试过iOS5(模拟器和设备)。

Also, I tried only on iOS5 (both simulator and device).

希望这会对你有所帮助;)

Hope this will help you a little ;)

更新:如果您使用的是旧版SDK,请查看此问题:
iAds不适用于iPad应用程序吗?

Update: Also check this SO question in case you are using some older SDK: Is iAds not available for iPad apps?

这篇关于iAd没有在iPad上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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