Adsense Test Code on a Web Page
I wrote on another post about how to put Adsense on a web page that is not quite finished yet. There are lots of uses for this. This is really useful for developers that release code and don’t want their adsense account put at risk on every site (thought they may do that to try to increase earnings but this is a really short term solution).
Anyway. I am sure you know the reasons for this. Google does not want you to put their script on a site that is not done. But you need it there to help with the layout. One solution is to use a graphic the size of the ad block. The other is to use this code. Just change the dimensions to fit your need.
<script type="text/javascript"><!-- google_adtest = "on"; // new line google_ad_client = "pub-0000000000000000"; google_alternate_color = "ffffff"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel = "0000000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
Want automatic updates? Subscribe to our RSS feed or Get E-mailed Updates!
Posted by Carl Thomas / Affiliate Preacher on August 17th, 2007









Monday, October 1st, 2007 at 8:08 pm
thank you so much for this. I have been pulling my hair out trying to design an adsense site without table.
cheers!
[Reply]