Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can, but you will only be able to show the ads that load on the first page. Google prohibits you from refreshing the ads without performing a full page refresh.

This made sense before AJAX, because people were simply refreshing ads every few seconds to increase impressions/clicks. But now with AJAX, there's no good way to get new ads.

Google has/had an "Adsense for AJAX" project...but no one has heard anything about it in ages. [1]

I've vaguely read that DFP Small Business from Google may let you refresh ads through AJAX, but I'm not certain. Would be an avenue to check into. [2]

Alternatively, you could just say "screw you google" and run something like Adzerk [3] on your site (which allows AJAX refreshing), but the problem is that you have to find and manage your own ad inventory.

[1] https://developers.google.com/adsense-for-ajax/ [2] http://www.google.com/dfp/info/sb/faq.html [3] http://www.adzerk.com/



>>You can, but you will only be able to show the ads that load on the first page.

Can you share some more detail on this one? And I'll look into DFP, thanks!


I don't have any links, sorry. I just remember this from the time I looked into using Adsense for my own AJAX site. From what I recall, Google doesn't care if you load and display one set of ads, but as soon as you start refreshing the adsense snippet (via an iframe, or removing the divs and recalling the snippet), Google brings the banhammer down quickly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: