Wednesday, May 2, 2012

Add Adsense ads unit in Right or left corner in blogger post.

Now i will tell you how to add adsense in your blogger poat content. I hope it's the best and easy way to add adsense in blog post.
At first create a new adsense ad unit in your blogger account and get the code.
You can't please the adsense code in your blogger directly. So you need to midify your adsense code.
encode your adsense code using centricle.

After encode,your ad code Should look like this.
adsense encode
1. Go to blogger account -->dashboard--> layout- -> Edit HTML

2. Now "Expand Widget Templates"
3. Find the bellow code
<div class='post-header-line-1'/>
4.To place ad Top left corner of your post ,Paste the below code, below of above line.

<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>
Your Adsense Parsed code
</div> 
5.To place ad Top right corner of your post ,Paste the below code, below of above line.

<div style=”display:block;float:right;margin: 0px 10px 0px 0px;”>
Your Adsense Parsed code
</div> 
 Note :  We can't put "<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>" and "</div>" directly in the xml. So we must generate Parsed code for these code using AdParser.

So Final Code you have to copy below the line "<div class='post-header-line-1'/>" ,look like this.
6. Now save your Template.

0 comments:

Popular Posts

Recent Posts

Powered by Blogger.