A lot of app (like facebook, twitter) have a stream of contents and every n times they put ads (called sponsored posts).
I have an app that show a list of items and I put an admob ad every 6 elements. The list of elements is not fixed and I can have from 0 to 250 items.
With the actually implementation I have a unique ad id so all banner have (obviously) the same content.
So i would create manually +40 ads on AdMob site...and assign programmatically on recycler.
On AdMob I read:
The number of ads on a single screen should not exceed one if the ad is fixed to the screen top or screen bottom. If the page scrolls, only one ad should be visible on the screen at a time, and, according to the AdSense program policies, publishers may place no more than 3 ad units on one entire page.
How can app like facebook or other show multiple ads on a scrolling page? Does exist any ad network that permit this?
As one of the largest global ad networks, AdMob can fill your ad requests from anywhere in the world. Maximize the value of every impression across all your networks with the most advanced monetization technology.
Thus, if your app contains only banner ads, it can have only one Ad Unit ID. If your app contains banner and interstitial ads, it can have two Ad Unit IDs.
Ads won't show if you haven't integrated the Google Mobile Ads SDK correctly. Is your ad implementation code working properly? Test your implementation code to check that ads can show. You can also use ad inspector to test your app's ad serving.
AdMob supports the following ad formats: banner, interstitial, rewarded, and native.
I don't know how other networks handle things, but you can definitely make this work with AdMob's Native Ads Express. It's a new ad format that AdMob introduced a few weeks ago at I/O 2016.
I would suggest the following:
Register a new ad unit ID at https://apps.admob.com and choose Native Ads Express. You'll only need one. Pick a small template size and a template that works for your app. You can customize colors and fonts to match your UI.
In your activity, maintain a list of NativeExpressAdView objects that you've instantiated and loaded ads into (loading an ad for Native Ads Express works essentially the same as for banners). You should only need a few to start.
When your RecyclerView scrolls to the point that you need an ad, use one from the list and note the index. Then add a new NativeExpressAdView to the end of the list so you can load another ad in case the user keeps scrolling. If the user scrolls back up, you know which NativeExpressAdView goes with which index, and you can act accordingly.
Some things I'd recommend avoiding:
Make sure you don't have more than one ad onscreen at once. This is the big policy concern here. You may need to show an ad once every six items on one device, versus once every eight items on a larger device, etc. The "three ads per page" rule you quote is (I believe) an AdSense rule for websites, and not applicable to AdMob.
Don't load all the ads necessary to fill the entire list at once. 250/6 = ~40 ads, which is a big chunk of data, especially if the user never makes it all the way down.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With