Read on and Subscribe! :)Now Reading ...

Time Based Advertising Tutorial

By Ken Xu on Jun 10, 2008 in Technical Skills, featured

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 &raquo;</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 &raquo;</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

3 Excellent Responses for "Time Based Advertising Tutorial"
  1. MyAvatars 0.2 Keith Dsouza Says:
    (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
  2. MyAvatars 0.2 Ken Xu Says:
    (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
  3. MyAvatars 0.2 Silki Says:
    (June 12, 2008, 7:56 am)

    Hmmm…
    This is worth considering.

    Reply to Silki

Leave a reply

:mrgreen: :| :twisted: :arrow: 8O :) :? 8) :evil: :D :idea: :oops: :P :roll: ;) :cry: :o :lol: :x :( :!: :?:

Live Preview:


Go ahead and start typing.

Comment Policy:
Please double check your comment before submitting. I reserved the right to delete any comments which containing spam, bold advertisement, verbal abusive, or any other form of comment that is not suitable for publication.

    Subscribe

  • Subscription Choices:
  • Subscribe to our Newsletter. Read the Benefits of subscribe here.
  • Your privacy is our priority.

    Recent Readers

    Get Firefox!

  • This Blog is optimized for Firefox.
  • Foxkeh