简体   繁体   English

iOS AdMob中介不起作用(iAd从不显示)

[英]iOS AdMob Mediation Not Working (iAd Never Shows Up)

I've completely and properly (to my understanding) setup AdMob mediation so that my iAd will show up before my AdMob ad, and if the iAd doesn't fill then I would like to show the AdMob ad. 根据我的理解,我已经完全正确地设置了AdMob中介,以便我的iAd可以在我的AdMob广告之前展示,并且如果iAd没有填充,那么我想展示AdMob广告。 Thing is, iAd banner never shows up..EVER! 事实是,iAd横幅永远不会显示。 If I disable iAd in my AdMob account everything works perfectly and AdMobs show up but I would really like to get both working. 如果我在我的AdMob帐户中禁用了iAd,则一切正常,AdMobs出现了,但我真的希望两者都能正常工作。 Any help on this matter would be greatly appreciated. 在此问题上的任何帮助将不胜感激。 (I've followed Googles guide to setting up mediation). (我已遵循Google的设置中介指南)。 Anyone else having this issue? 还有谁有相同的问题吗?

Thanks in advance for any help :) 在此先感谢您的帮助:)

Have you added the admob adapter for iAds to your project? 您是否已将iAd的admob适配器添加到您的项目中? It can be found here, 在这里能找到它,

https://developers.google.com/mobile-ads-sdk/docs/admob/ios/mediation-networks https://developers.google.com/mobile-ads-sdk/docs/admob/ios/mediation-networks

Direct download link : https://dl.google.com/dl/googleadmobadssdk/libadapteriad.zip 直接下载链接: https : //dl.google.com/dl/googleadmobadssdk/libadapteriad.zip

If not AdMob won't be able to serve iAds via their mediation SDK. 否则,AdMob将无法通过其中介SDK投放iAd。

Weird solution but it worked: 奇怪的解决方案,但是有效:

By following the guide provided by Google to setup Ad Mediation in iOS, it tells you to implememnt it via Storyboard/nib. 按照Google提供的指南在iOS中设置广告中介,它可以告诉您通过Storyboard / nib实施它。 Once I removed this method and simply implemented the GADBannerView programmatically, everything began to work as expected. 一旦我删除了此方法,并以编程方式简单地实现了GADBannerView,一切便开始按预期工作。 Quite the annoying issue, but thankfully it's solved and I can move on. 非常令人讨厌的问题,但幸运的是,它已解决,我可以继续。

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

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