iAds:didFailToReceiveAdWithError时显示自己的广告(iAds: Displaying own ads when didFailToReceiveAdWithError)

编程入门 行业动态 更新时间:2024-10-24 16:22:14
iAds:didFailToReceiveAdWithError时显示自己的广告(iAds: Displaying own ads when didFailToReceiveAdWithError)

在美国和其他一些国家(英国,法国,德国,意大利,西班牙,日本/日本)之外, iAd网络的广告在iOS上还没有出现。

与此同时,除了使用AdMob 等填补空白,我想知道是否可以显示我们自己的广告与iAd Producer建成。

所以,该机制将是,当广告不可用,因此触发bannerView:didFailToReceiveAdWithError:它会触发我们自己的广告。

如果是这样,就以下方面提出以下建议:(1)是否有效地运行我们自己的iAd-Producer广告; (2)如果是的话,如何实现该机制?

Outside the US and a few other countries (UK, France, Deutschland, Italia, España, Japan/日本), ads from the iAd Network aren't showing up much on iOS, yet.

In the meantime, besides using AdMob and the like to fill the blanks, I wonder if it's possible to display our own ads built with the iAd Producer.

So, the mechanism would be that when advertisements are not available, therefore triggering bannerView:didFailToReceiveAdWithError:, it triggers our own ad instead.

If so, any ideas on: (1) if it's effectively possible to run our own iAd-Producer ads; (2) if so, how to implement that mechanism?

最满意答案

您还可以创建adMob所谓的“内部”广告。 您可以上传要用作广告的图片,或者只需指定一些文字和一个小图标,AdMob会使其看起来像他们的标准广告。 这样,您可以在没有展示iAds(100%自家广告)或您想要的任何空间数量时,让自己的房屋广告填充剩余广告资源。

我已经构建了一个开源库 ,在每个视图中使用一行代码处理iAd和AdMob广告,并将其放入一个容器中。 这使我可以在没有iAds显示时自定义关于用户广告体验的所有内容。 只需将您的Google发布商ID设置为您的帐户,即可开始使用。

You can also create what adMob calls "In-house" ads. You can upload an image to use as the ad, or simply specify some text and a small icon and AdMob will make it look like their standard ads. This way, you can have your house ads filling up the remaining inventory when iAds aren't being displayed (100% house ads), or whatever amount of space you would like.

I've built an open-source library to handle both iAds and fallback AdMob ads in a single container with a single line of code in each view. This allows me to customize everything about my users' ad experience when there are no iAds to display. Just set your google publisher id to your account's and you're good to go.

更多推荐

本文发布于:2023-07-27 15:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1292409.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   广告   didFailToReceiveAdWithError   iAds   Displaying

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!