Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense and Iframes

do i have to change code

         

Rolozo

4:28 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



I am planning to place my adsenes code inside <iframe> tag.But i am not sure that the same code should work fine or there must be some change in adsense code.
Thank You.

Rolozo

9:33 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



can anybody tell me >?
do i have to change some code?

perldiver

9:54 pm on Nov 10, 2005 (gmt 0)



I'm not sure but I think adsense code is already in its own little iframe. Why would you want to do this? Page load speed?

In any event, it is against Adense TOS to modify their ad code in any way at all, and doing so can get you permanently booted from the program.

So, if you're going to do anything with the ads and iframes, all you can do is surround the ad with whatever you do, you can't change the ad to comply with what you're doing in any way.

Also, I seem to recall in a thread here not too long ago that putting iframes around your ads could prevent AS from tragetting your ads correctly, so that would be a bad thing.

Rolozo

10:10 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



i want to track clicks on adsense ads.
That's why i want to put adsense code in <iframe> tag.But i am not sure same code will go fine or i have to get changed code from adsense account where it asks
Framed pages optional
Select this option if your page uses frames.

Ad will be placed on a framed page.

I am not sure whether i have to check or not while placing code inside <iframe>.

Rolozo

10:13 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



or in simple words
i have to add
google_page_url = document.location;

or not?
i want to add onClick event to track click so i am using <iframe> tag..

Rolozo

10:41 am on Nov 11, 2005 (gmt 0)

10+ Year Member



i have tried both ways not working ads are not displaying inside iframe :S:S

bumpski

1:44 pm on Nov 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I used IFrames for more than a year until August of this year. About the time the "section targeting" feature was added, the IFrames began showing untargetted ads and garbage. When I did use the IFrames I never set the IFrame flag, that flag is for Frames, IFrames already know the context.

Regardless as far as I know they still don't work. You didn't have to change Adsense code at all, just put it in another BLANK page (no keywords) and point the IFrame to the blank page. This let the browser render the original page without waiting for the Adsense server (fixed some bad delays). (DIVS don't always succeed at this) I believe it also allowed the browser to establish concurrent GET operations.

BUT ITS ALL BROKEN now as far as I know. Use Google search, look for "site:www.webmasterworld.com bumpski IFrames" for more posts about IFrames