简体   繁体   English

iAd和AdMob广告未显示在已发布的iPhone App中

[英]iAd and AdMob ads are not showing in released iPhone App

I developed my app with two kinds of banners: iAd and AdMob. 我用两种横幅广告开发了我的应用:iAd和AdMob。
When iAd banner fails to load then AdMob banner loaded. 如果iAd标语无法加载,则AdMob标语将加载。
When I tested my app it showed black iAd test banner correctly but in released version of app there is no banners at all. 当我测试我的应用程序时,它正确显示了黑色iAd测试横幅,但在发布的应用程序版本中根本没有横幅。
I've tested it with web debugging proxy: requests are sending only to iAd server but never to AdMob. 我已经使用网络调试代理对其进行了测试:请求仅发送到iAd服务器,而从未发送到AdMob。 Seems like iAd banners are loaded successfully but never shown. 似乎iAd标语已成功加载,但从未显示。 In itunesconnect the iAd status is Live Adds. 在iTunes连接中,iAd的状态为实时添加。 Thanks. 谢谢。

The question is solved. 问题解决了。 If someone will face this problem in the future: in my situation the solution was in patient waiting. 如果将来有人会遇到这个问题:在我的情况下,解决方案是耐心等待。 Since two weeks after AppStore upload banners suddenly appeared. 自从AppStore上传两周后,横幅突然出现。 I think Apple needs some time to generate banners content according to the application audience. 我认为苹果需要一些时间来根据应用程序受众生成横幅内容。

If you are using the BannerViewController in the iAd sample code and find that iAd works perfectly when built for iOS5 but does not show up when built for iOS6, then find the line in BannerViewController: bannerFrame.size = [_bannerView sizeThatFits:contentFrame.size]; 如果您在iAd示例代码中使用BannerViewController,并且发现iAd在为iOS5构建时可以正常运行,而在为iOS6构建时没有显示,那么请在BannerViewController中找到以下行:bannerFrame.size = [_bannerView sizeThatFits:contentFrame.size] ; and remove the underscore. 并删除下划线。 I implemented iAD in my ShareMonitor app and, although I had identical code to the sample code, ads would only appear when built for iOS5. 我在ShareMonitor应用中实现了iAD,尽管我的代码与示例代码相同,但只有在为iOS5制作广告时才会出现广告。 After some debugging and trial and error, I found this resolved the issue and ads in my app worked perfectly. 经过一些调试和反复试验后,我发现此问题得以解决,并且我的应用中的广告运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM