Sunday, April 18, 2010

Adding Adsense To Blogger Blog Posts



For adding Adsense to your blog post you have to first convert the Adsense code and then it is possible to add the code to your blog template without any error. Visit the Adsense Ad Code Converter to convert the code.

Now that you have converted the Adsense code by visiting the above link, its time to paste the code in the Blogger template.

Just follow the steps given below:

1 Step:     
Now search the following code in the template [Press Ctrl+F and Paste the code below]

                    <data:post.body/> 
2 Step:
If you want to display the ads at the start of the post, then paste the code above <data:post.body/> and if you want to display the ads at the end of the post, then paste the code below it. However you will have to add the Adsense code between two lines of code before adding it to the template.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
Paste the Adsense Code here
</b:if>

The main reason for pasting the Adsense code between the 2 lines is that it wont display the ads on the Home Page. The ads will be visible only when you visit the blog post. This is important as Google allows only 3 ad units per page. Most of the blogs display 5 posts per page, because of which 5 ad units will be visible on the Home Page which is against the rules. But if you want to display the ads on the Home Page and have only 3 or less posts per page, then you don't need to add the above code to your Adsense code.

Now save the template and check your blog posts. The adsense code will be visible in the posts.