Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

The banners on my website are generated by $.ajax() call to the server after the page load is complete ($(window).load() event).

I want to to integrate ads from google to fill in empty banners when there is no active campaign associated to them.

I know that using ajax to place the AdSense code after the page load is complete is a violation of the AdSense Program Policies.

Is it legal (in terms of that program politics) to place the AsSence code as a default in all the banners on my website, and after the ajax request, remove unnecessary banners and replace them with banners from my own advertising management system?

I couldn't find a straight answer to this issue, and I don't want to change the logic of my CMS to be able to use google adsense in my website.

share|improve this question

migrated from stackoverflow.com May 9 '12 at 17:26

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 2 down vote accepted

I don't think this would be allowed. Google is pretty strict on how their ads are used, and doing what you mentioned would cause your ad impressions to increase even though the ad wouldn't be seen by your site visitors because it would be replaced. This could get your account banned.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.