Earlier this month, I read a post on
Tom's "Nothing-Ventured" about whether it's a good idea to add Adsense to your Adsense AIS sites right from the start, or to let them get indexed first.
At the time, I couldn't see any benefit to this.
So how is the “wait 6 months to add Adsense” method any better than being in the Google sandbox for 6 months?
At least with the Adsense there from the start you can still earn from other SEs while you’re waiting for G.
But the more I thought about it, the more it made sense - a new site generally wouldn't have Adsense on it, unless it was designed simply to display Adsense, and the SEs know this. I have created a new site to test Tom's theory on.
However, having to go through all of my sites to add Adsense code to them later doesn't sound like much fun, and the whole point of AIS is little/no ongoing work, so I wrote a little PHP script to do the work for me.
You'll have to edit the second line - it controls the date on which the Adsense will start showing. In this example, the 28th May 2006.
<?php
if ( time() >= mktime(0, 0, 0, 5, 28, 2006) ) {
?>
Your Adsense code goes here.
<?php
}
else {
?>
You could display some alternative content here
(affiliate links etc) or just leave it blank.
<?php
}
?>