Friday, July 31, 2009

An Easy Way To Show Adsense Ad Below Post Title In Blogger

When you enable the option 'Show ads between posts' in Blogger, the ads show after the post. But these ads often not seen by readers, especially if your post is long. The best place to keep your ads is under the post title, as it maximizes the exposure of your ads. More exposure means more clicks and greater revenue.There is a simple trick to make your ads appear under the post title rather than the default position (Under every post).

First log in to your Blogger Dashboard and go to Layout > Edit HTML. Now search for the following code in the box below.

<b:if cond="'data:post.includeAd'">
<data:adend/>
<data:adcode/>
<data:adstart/>
</b:if>

This is is code which show the ads when you enable 'Show ads between posts'. Cut this code and paste above this in your template.

<p><data:post.body/></p>

You may have to click on Expand Widget to see the code.

You can also tweak these codes more to show ads only on post pages and not when an user visits your home page, or browse categories. To do this you will have to change your code into this.

<b:if cond='data:blog.pageType=="item"'>
<b:if cond="'data:post.includeAd'">

<data:adend/>
<data:adcode/>
<data:adstart/>
</b:if>
</b:if>

If you use Blogger, then I suggest you try this.