Freelance - Mobile Phones - eHarmony - Homeowner Loans - Ringtone

PDA

View Full Version : AdSense Within <DIV>


hans
Mar 21st 2004, 11:20 pm
if you like to add Google Adsense witout table on the right
hence with the least changes to each page ..

add to external style sheet something like ( or exactly ):

-------- snip

div.google {
float : right;
margin-left: 2em;
width : auto;
}

--------- snap

and then place the Adsense code between the div tag as shown below

<div class="google">

<!-- here you place the Google Adsense-code -->

</div>

this combination of <div>- tag+google code can then be placed on any line you want to have the vertical ads

right on top of page or below H2 or below a pic .. where ever you insert the div - there on same level ON THE RIGHT floating is the Google adsense

that saves the otherwise often used tables and creates only minimal work to add the Google Adsense-code to any number of pages any place you like - to the right ..

Colleen
Jul 25th 2006, 11:09 am
Did you figure this out? Let me know. :D

i_am_dhaval
Jul 25th 2006, 11:15 am
is it agains the Adsense TOS????

Gordaen
Jul 25th 2006, 11:34 am
That's within the TOS, because it does not change the actual adsense code. As long as you leave the code intact when you paste it inside the division, it's fine (assuming you aren't doing anything else to affect it like forcing it to open in a new windows, etc.).

ravianz
Jul 25th 2006, 11:38 am
i dont think it is against TOS coz by using this technique you are only adjusting placement of the ad unit; you can not play with you adsense code anyway!

Colleen
Jul 25th 2006, 11:45 am
K-rad, you guys are TOTALLY awesome! Who cares about TOS, fock the rules, get away with it while you can!!