Is it legal ? I have seen the terms https://www.google.com/adsense/terms but they only mention that you cannot frame your visitors after they click on a ad link. (searched for iframe and frame on the document) and in their policies https://www.google.com/adsense/support/bin/answer.py?answer=48182&topic=8423 They state that no Google ad may be placed on any non-content-based pages. I know the ads wont find content to serve relevant ads but I willing to find a javascript solution by making the script think that its not inside a frame. without changing google's code of course. Would such a solution violate their terms and policies ? If you have to ask, I am using what I realized is a crappy CMS and it won't let me insert <script> code or other similar stuff but it will let me insert an <iframe>
If you can't add <script> tag through CMS, go directly to base (probably mysql) with phpmyadmin and add the code into proper content.
I know but I am looking for the simplest solution without getting my hands dirty Anyway thanks for the concern. I also send google this question, waiting for their answer.
They finally answered that its OK to use iframe so now I am just looking for a simple solution on how to make javascript see outside of the iframe Anyone has a solution ?
I finally got around in solving this problem I just use document=parent.document; before the adsense code; I send the google team my concerns whether I could use or not it and they said it was ok with their policies since I was not modifying the google code. read the whole correspondence if you want http://geoland.org/2007/01/adsense-in-iframe/
https://www.google.com/adsense/support/?fulldump=1 Why am I getting PSA's? The AdSense ad code was placed within an IFRAME. Our targeting technology is not optimized to serve ads within a separate IFRAME. If you placed the AdSense code in a separate IFRAME, your site may display less targeted ads or public service ads. For better results, please implement our ad code directly into the source of your web page. Once you make these changes, relevant ads may not appear immediately. Until we are able to re-crawl your site, which may take up to 48 hours or more, your page may continue to display untargeted or public service ads.
its against the TOS most likely but take a look at http://megaupload.com/ their ads are inside 2 frames! and the best part firefoxes adblock doesnt block it!
well in my case it was communicated to the google adsense team and they responded positive - I have their coresondence I hope they honor this and not come up with a funny story at the end.