I have a main page that I want to keep ad free, unless a visitor submits a form on the page. In that case I would like to display an Ad on the page.

I only want to display that Ad once and it will stay there until the visitor leaves.

Now, I read quite some posts on here that this may be a violation to the T&C of Google and/or that there's no adsense for Ajax (fyi: I read this, also this, this as well and quite some other posts as well as the Google T&Cs).

I feel this should not be a violation, cause I might as well display the Ad immediately upon loading of the page and since I'm keeping it static after that I'm not doing any reloading or anything.

Any ideas or suggestions?

2 Answers 2


Sadly its not a matter on how you 'feel' about Google's T&C's. These are what all webmasters agree to upon signing up too, there are many reasons why Google does not want advertisements in Ajax.

It is worth mentioning that there is many other advertising networks to consider that allow Ajax advertisements, but be warned that Google has patented algorithms that detects ad placement and can actually effect your rankings if its considered above the fold or anywhere which they consider impacts user experience, I believe they are constantly improving this algorithm.


With your initial page load you can load your Adsense Add in a div which is hidden. When they post the form, just make the div visible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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