Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Adsense and Iframe Content

iframe content, adsense



5:08 am on Nov 26, 2005 (gmt 0)

10+ Year Member

I just added a couple of news iframes to a site and there happens to be adsense ads served on it as well. Will the ads be able to read the content in an Iframe?

I am only asking because I would like to test if it helps the adsense or not. I can create a seperate channel just to see, but wanted to ask here first....

Anyone have any set ups like this, or have you seen anything like it?


12:47 pm on Nov 26, 2005 (gmt 0)

10+ Year Member

Check the box in your adsence account that says it will be in a frame


12:48 pm on Nov 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

When you generate your Adsense code there is a checkbox for framed pages that adds the following line

google_page_url = document.location;

This works for me and I get Ads for the real page rather than the outer frame


2:14 pm on Nov 26, 2005 (gmt 0)

10+ Year Member

Oh yeah...sorry for the question, i fogot about that box LOL.


5:18 am on Nov 27, 2005 (gmt 0)

10+ Year Member

Ok, and this is FOR pages that use an IFrame WITH content that WANT ads based on the framed content?


6:13 am on Nov 27, 2005 (gmt 0)

10+ Year Member

I didn't have good luck with framed sites if you use PHP Includes it works great and makes it ez to edit just like a frame site.

Featured Threads

Hot Threads This Week

Hot Threads This Month