简体   繁体   English

如何在android中创建admob原生广告的关键?

[英]how to create key of admob native ads in android?

i want to integrate native ads of admob but problem is how to create native ads key because it provide banner and interstitial ads key.我想集成 admob 的原生广告,但问题是如何创建原生广告键,因为它提供横幅和插页式广告键。

Thanks谢谢

Avocarrot is an ad networking where it provides different types of native ads. Avocarrot是一个广告网络,它提供不同类型的原生广告。 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..例如:如果您需要每 15 行在第二个单元格中放置广告,您可以像这样使用..

 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.这是 文档,它提供了列表广告和供稿广告。

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

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