I use basic DIV tags wrapped around my adSense code as you wrote above, but I added some formatting to the CSS file for my theme so that I could have more control over how each ad displays:
/* ---------------------------------
- GOOGLE ADVERTISING CSS -
--------------------------------- */
.adleft {
display: block;
float: left;
padding: 0 2px 2px 0;
}
.adright {
display: block;
float: right;
padding: 0 0 2px 2px;
}
.adtop {
display: block;
float: left;
padding: 3px 0 0 0;
}
.adfirefox {
display: block;
text-align: center;
padding: 2px 0 0 0;
}
.adside {
display: block;
text-align: center;
padding: 10px 0 0 0;
}
.adbottom {
display: block;
float: left;
padding: 3px 0 3px 10px;
}
Therefore, to use your example above, I would write it into my post as follows:
<div class="adright"><script=adsense code blah blah></script></div>
This allows my post text to wrap around my advertising (which I’ve set up to match my site theme as closely as possible.) If you’re wondering about the rest of those classes defined in there, adtop
and adbottom
apply to the big “Get Firefox” button/banner at the top and bottom of by pages, the adside
controls most of the sidebar advertising, and the adfirefox
controls the big “Get Firefox” button on the sidebar. You ought to be able to adapt or delete these to work on your site.
Also, if you haven’t already gotten it, I highly recommend the Adsense-Deluxe plugin from Acme Technologies.