I have added google ads to techonomics.se to make the business profit. Yet it has not produced any results, but we'll see.
The question is how you manage to get an ad in the first three posts on your blog? The fact is that you as an AdSense user may only have three ads per html page. If you have several items on the front page of your blog it may be time to run ads on the top three.
The solution is to edit the index.php (or similar) where your posts are listed. Create a counter, $counter = 1; at the beginning of the file in a tag:. After you place your ad where the while loop adds the contents of your records and lists $counter = $counter +1 ; . Do a test to $counter <= 3 when posting annonsscriptet.
Here's what the code looks in more detail:
<? Php get_header (); $ Counter = 1; ?>...<? Php if (have_posts ()): while (have_posts ()): the_post ();?>...<div class=""storycontent""> <? Php if ($ counter <= 3) { echo (' <Your AdSense annons> '); } $ Counter = 1 + $ counter;?>...
Of course, a format to be done, e.g. with CSS, to fix a good placement of the ad. Then create a div with class ad has the right format and place it around the ad.
Something else that is good is to give each post an ad. In my theme is called a single post single.php. You do not have to worry about any counter, it is enough to put an ad!






