homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & martinibuster

Google AdSense Forum

Adsense Code Should Be Inside of a Div?

5+ Year Member

Msg#: 3162675 posted 5:34 pm on Nov 20, 2006 (gmt 0)

Should the adsense code be placed inside a div? Or, is it alright to just post it into the page as-is?





WebmasterWorld Senior Member 5+ Year Member

Msg#: 3162675 posted 5:40 pm on Nov 20, 2006 (gmt 0)

The Adsense code can be placed in your HTML code as-is. Any styling that needs to be done to the actual ad can be done through the Adsense Setup interface.


5+ Year Member

Msg#: 3162675 posted 3:33 am on Nov 21, 2006 (gmt 0)

Lots of people choose to put ads on their site by first having a div as a placeholder in the normal span of the page, and then having another div later containing the AdSense code positioned where the original div was. The thinking there is to make sure the content comes up as easily as possible when a search engine reads the page and not get tangled up in extra details.


<div id = "main_ad_container"></div>
blah blah
<div id = "main_ad_content">
<!-- adsense code -->

Imagine though that "blah blah" has a lot more to it and again, div "main_ad_content"> is positioned through css to appear where the original div is/was. I'm not sure if this method improves rankings or whatnot though.


5+ Year Member

Msg#: 3162675 posted 4:44 am on Nov 21, 2006 (gmt 0)

you can put that code in any tag..

no worry about it...

just worry about ... you can not change that code manually...
anything else you can do with adsense code


WebmasterWorld Senior Member ann us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3162675 posted 3:55 pm on Nov 21, 2006 (gmt 0)

Putting your most important ad code in a div will encourage the placement of the higher paying ads to it since it gives more importance to that ad block as being first even though it may be at the bottom of the page.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved