实现使用Admob的在Android原生的广告?可能吗? [英] Implementing native ads in android using Admob? is it possible?
问题描述
我想实现我的android应用本地广告。但我想只用AdMob的做到这一点。我搜索了很多的解决方案,但找不到确切的人这么做。
I'm trying to implement native ads in my android application. But I want to do it using admob only. I searched a lot for solution but could not find exact one to do so.
我知道这是可能使用 MoPub 一>
I know it is possible using MoPub.
我想做的事情是这样的:
内部列表项,这意味着 ListView控件中的一个显示广告
/ RecyclerView
项目可以是一个广告像下面的图像。
What I wanted to do is this:
Show ads inside list item which means one of the ListView
/RecyclerView
item can be one ad like below image.
我发现了一些链接和引用,但是这并不能解释正确实施本地广告。
I found some links and references but that doesn't explain proper implementation of the native ads.
链接1 :本地广告概述
链接2 :DFP Android的指南>定位
Link 2 : DFP Android Guides > Targeting
链接3 :DFP快速入门指南
Link 3 : DFP Quick Start Guide
如果这是不可能使用AdMob的它做的,<一个href="http://stackoverflow.com/questions/23404683/not-able-to-show-native-ads-of-mopub-in-android-application">MoPub对我来说是最好的解决办法现在。
If it is not possible to do it using admob, MoPub is best solution for me right now.
任何帮助和指导将是有益的。谢谢。
Any help and guidance would be helpful. thanks.
推荐答案
请尝试使用其他一些广告网络的地方提供不同类型的本地广告。开发者可以定制广告的放置位置,并使用它。对于例如:如果你要放置广告的第二个单元,每15行,你可以使用这样
Try using some other ad networking where it provides different types of native ads. Developers can customize the ads where to place and use it. For eg: if you need to place ads at second cell every 15 row, you can use like this.
Avocarrot 规定。
AvocarrotInstream myAd = new AvocarrotInstream(<yourListAdapter>);
myAd.initWithKey( "<your API Key>" );
myAd.setSandbox(true);
myAd.setLogger(true ,"ALL");
// Populate with In-Stream ads
myAd.loadAdForPlacement(this, "<your Placement Name>" );
// Bind the adapter to your list view component
<yourListView>.setAdapter(myAd);// here you are integrating ads to listview
myAd.setFrequency(2,15); // every 15 cells starting from the 2nd cell.
下面是文档它提供了列表的广告和订阅广告
Here is Documentation it provides List ads and Feed ads.
这篇关于实现使用Admob的在Android原生的广告?可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!