2016-04-21 97 views

回答

0

Avocarrot是一個廣告網絡的地方提供了不同類型的原生廣告。開發人員可以自定義放置和使用廣告的位置。對於例如:如果您需要在第二個單元格放置廣告,每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. 

這裏是Documentation它提供了列表廣告和Feed廣告。