How to load position based ads in recycler view ?

4,237 views
Skip to first unread message

Ashish Gupta

unread,
Mar 1, 2016, 6:05:38 AM3/1/16
to Google Mobile Ads SDK Developers
I wanted to load multiple ads at a single time in recycler view. How can I implement this functionality ?

Veer Arjun Busani

unread,
Mar 1, 2016, 12:27:14 PM3/1/16
to Google Mobile Ads SDK Developers
Hi Ashish,

I have created a sample app for you to be able load Banner Ads in RecyclerView. Basically in your model, I have added two types of Views - Normal Item and a Banner Ad View. The RecyclerView would then look at the type of View added in the model and switch accordingly.

Project: Link

Thanks,
Veer Busani
Mobile Ads SDK Team

Ashish Gupta

unread,
Mar 3, 2016, 1:20:45 AM3/3/16
to Google Mobile Ads SDK Developers
Hi Veer,

I have also implemented native ads in the same way you have implemented but I have a doubt about this implementation. According to the Admob behavioral policies ( https://support.google.com/admob/answer/2753860?hl=en ) we can't load more then one ad in a single screen using one ad unit id. Is this implementation based on recycler view is correct because we are loading more then one ad using a single ad unit id on a single screen ?

Thanks & Regards,
Ashish Gupta  

Veer Arjun Busani

unread,
Mar 3, 2016, 10:51:26 AM3/3/16
to Google Mobile Ads SDK Developers
Hi Ashish,

I would not be able to comment about Ad Placement policies and you would have to contact the AdMob Support Center for this. 

Thanks
Reply all
Reply to author
Forward
0 new messages