Time Based Advertising is a new trick that I learn which could help me to increase tech savvy readership and increase click on ads from search engine visitor.
Generally, New post that just posted for around 3-5 days will not have enough power to show higher in the SERP. So it’s rarely to see your post listed in the first page of SERP (except if your posts get a lot of supports). Only those posts that have been aged for more than 1 week will get a good search engine traffic (at least, that’s what happened at my blog).
So, I will only show ads on posts that I posted 5 days ago and avoid showing ads on the newer posts. The steps are easy. Follow this tutorial and start time-basing your advertising!

Image Credit: Leo Reynolds
First, let’s say you want to time-based an adverts on your single post page below your headline. The steps are as follow (for Wordpress only):
1. Find the following code:
1 2 | <div class="entry"> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> |
2. Copy this codes:
1 2 3 4 5 6 7 | <?php $u_time = get_the_time('U'); $selector = 0; if ( ( time() - 432000 ) >= $u_time ) { $selector = 1; } // 60*60*24*2 = 432000 = 5 days ?> <?php if( $selector > 0 ) { ?> //Paste your Adverts Code here - Adsense, YPN, Chitika, etc <?php } ?> |
3. Paste it between the div entry and the_content:
1 2 3 4 5 6 7 8 9 10 11 | <div class="entry"> <?php $u_time = get_the_time('U'); $selector = 0; if ( ( time() - 432000 ) >= $u_time ) { $selector = 1; } // 60*60*24*2 = 432000 = 5 days ?> <?php if( $selector > 0 ) { ?> //Paste your Adverts Code here - Banner, Adsense, YPN, Chitika, etc <?php } ?> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> |
4. Replace the text “//Paste your adverts code here - Adsense, etc” to your Ads Code and Change the time as you wish.
What we need is the time in “second”. So, to display ads on 5 days posts, you need to convert it to second.
60 seconds x 60 minutes x 24 hours x 5 days = 432.000 seconds
Look at my example at my blog about hardware and gadgets. I set it to display Google ads on post that have been aged for 2 days. It’s pretty useful for gaining new readership as reader hate ads and blind on it. But it’s useful for monetizing Search Engine traffic as the visitor is more clicky.
Hope this simple tips useful for you. Have a nice day!
Related Post
- Insert Adsense in the Middle of Your Homepage Manually
- Transformation Theme Launching Day!
- My First Theme is Up!
- Social Bookmarking Button
- Different Sidebar in Single Post
- Top 3 Favorite Micro Blogging Services
- 10 Days Experiences in the World of Code
- How to Setup Advance Reading Options with Script.Aculo.Us

Now Reading ...
Stumble it!
Del.icio.us it!
Digg it!
Leave a comment








(June 10, 2008, 6:14 am)
Quite useful, informative and logical way to both gain readers as well as get better advertisement mileage
Stumbled
Reply to Keith Dsouza(June 11, 2008, 3:44 am)
Thanks Keith. Increase both readership and earning is just the dreams of every blogger. It’s only a simple trick to get both of them.
Reply to Ken Xu(June 12, 2008, 7:56 am)
Hmmm…
Reply to SilkiThis is worth considering.