Activity Stream Ads

Hello, is there an easy way of adding google adsens throughout the activity feed? It has to work with the ajax ‘Load More’ button in placing ads every 10th update. Thanks in advance to anyone who can help.

I tried this but it limited my ability to toggle between activity streams. For example when I went from “all members” to “friends” and the activity feed didn’t load. I have to refresh the page to get it to load. This is fine for a desktop but unworkable on a mobile.