xcode 如果 iAds 失败,如何集成 iAds 和 AdMob

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12660477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 15:50:09  来源:igfitidea点击:

How to integrate iAds and AdMob if iAds fails

objective-cxcodeadmobiad

提问by Ben Wilson

I have been searching around for a little while looking for a complete guide on how to integrate iAds with AdMobs if iAds fails,

我一直在四处寻找有关在 iAds 失败时如何将 iAds 与 AdMobs 集成的完整指南,

The only reason I ask this is that I have iAds and I am noticing a very low fill rate with iAds and would love to have AdMobs fill the spaces. I have read the related post below and feel this is a little outdated (from 2010)

我问这个问题的唯一原因是我有 iAd,我注意到 iAd 的填充率非常低,并且希望 AdMobs 填充空间。我已经阅读了下面的相关帖子,觉得这有点过时了(从 2010 年开始)

are there any better solutions complete tutorial out there with detailed code that you know about.

有没有更好的解决方案完整教程,其中包含您了解的详细代码。

Using iAd as default ad network, and AdMob if iAd fails

使用 iAd 作为默认广告网络,如果 iAd 失败,则使用 AdMob

回答by Eric Leichtenschlag

You should use a Mediation solution. One example is AdMob Mediation. All you need to do is write code against the AdMob API, plug in the iAd adapter library (available here), and configure a Mediation placement to request iAd and backfill AdMob.

您应该使用中介解决方案。一个例子是AdMob 中介。您需要做的就是针对 AdMob API 编写代码,插入 iAd 适配器库(可在此处获得),并配置中介展示位置以请求 iAd 并回填 AdMob。

回答by J?hn Narr?w

You can use these controls to show iAds as well as adMob both

您可以使用这些控件来显示 iAd 和 adMob

https://github.com/pjcook/iAdPlusAdMob
https://github.com/chrisjp/CJPAdController

Or here is nice tut that explain step by step

或者这是一步一步解释的很好的啧啧

http://mobile.tutsplus.com/tutorials/iphone/supplementing-iad-placement-with-admob/

http://mobile.tutsplus.com/tutorials/iphone/supplementing-iad-placement-with-admob/