AdMob Ads in an endless RecyclerView with Paging library
I am using paging library to fetch data from server, I was thinking of showing Ad after every 10 items. So as the user scrolls down and new items are fetched and added to PagedList. I want the new Ad to be loaded and added in RecyclerView as well just like Instagram shows ads in feeds. So if the user scrolls to 200 items, 20 ads will be shown gradually!!. I have read a couple of tutorials but I haven't figured an easy way to do it. Here is my adapter. class RequestsPagedAdapter( private val retryCallback: () -> Unit, private val from: From) : PagedListAdapter<RequestsQuery.Request,