Placeholder
Placeholder

Reputation: 689

Refreshing google adsense on an AJAX page

I know that directly refreshing the ads is against the TOS of Google adsense but I am wondering if it would be possible to use java script JUST to refresh the ads after 30 seconds or so on an AJAX themed website?

Currently if I display ads on my page they will disappear because of Google's 3 ads per page limit and because I am using ajax basically to keep my page from refreshing ever I am going to assume that it's not going to be possible to display Google adsense ads on my website?

Upvotes: 6

Views: 7390

Answers (2)

Rob Sedgwick
Rob Sedgwick

Reputation: 4514

See this post from Google. It has the code in to refresh the ad after an interval. Not quite as good as after the Ajax refresh but I guess if you are doing dynamic paging or something like that then the ad will refresh periodically at least.

https://support.google.com/dfp_sb/answer/3058726?hl=en&ref_topic=4409240

Upvotes: 3

Adeel Mughal
Adeel Mughal

Reputation: 736

Refreshing your AdSense advertisements automatically isn't allowed. I understand that you only intend to refresh the ad in response to user action, but it still isn't allowed, even though it should be!

Remember, the reason why you want to update the advertisements is so that you can show new ones. Displaying an advertisement is called an "impression." When you use code to refresh the ads, you are automatically generating ad impressions.

AdSense Program Policies state (emphasis mine):

See full answer Refresh a Div that has a Google ad inside it

Upvotes: 4

Related Questions