You may have seen Google Ads showing just below every post title (but above the post body) on different blogs or websites. You can see it on this blog also. But have you ever tried to apply this on your blog. Some of you may have tried it by adding the adsense code in post, but its not possible to put adsense code every time you make a post. or still if you do this, it would be very hectic.

Here I am showing the simple trick using which, you will have to do it only once and it will automatically be showing below the Title of each and every post of your blog.Just follow the simple steps showing below:

Step 1:
First of all setup your Adsense in whatever format you wish or which suits your blog and get the code.

Step 2:
When you have have got adsense code, you will have to parse this code HERE. Parsing is nothing but the conversion of the special symbols of adsense into xml supported language. After parsing you will get the converted code. Just Copy the code and then proceed for the next step.

Step 3:
Now login to your Blogger Account and go to Layout >> Edit HTML. Here you then Click on the "Expand Widget Templates" box.

In HTML code box find (Ctrl+F) the below peice of code:
<p><data:post.body/></p>

Step 4:
When you found this code just put your parsed adsense code before the <data:post.body/> tag. You code will look like this:
<p>YOUR PARSED ADSENSE CODE HERE<data:post.body/></p>

When you have done this, dont hurry to save it. First see the preview of it and if it shows perfectly, you can save it now. But it may sometimes not show perfectly depending upon your template style or if you are using ads other than from Google Adsense. Well in this case, dont worry, You will have to change the first step. Means when you get the adsense code (Whether from Google or else) you will have to do something more before Parsing it(i.e. Step 2).

Step 1 (alternative):
After getting the adsense code, just add a peice of code just before and after your original adsense code as shown below:
<table align='left'><tbody><tr><td align='left'>
YOUR ORIGINAL ADSENSE CODE HERE
</td></tr></tbody></table>


This code is now the result of your First step instead of previous one. Now copy this whole code and then go to the Step 2 (i.e. Parsing).

If you still find any problem, just do write it in comments. I will try my best to solve it.........happy blogging!!!!!!!

11 comments

HCG Diet said... @ April 13, 2009 at 10:18 AM

Hey,
When i add the code for adsense showing only on a single page no posts are showing up.

[ REPLY ]
Praneet Agarwal said... @ April 18, 2009 at 7:54 PM

Dear HCG i didnt understand what exactly the problem is. Can u plz tell me more clearly.....

[ REPLY ]
CCNA EXAM said... @ June 16, 2009 at 10:44 PM

really a great post friend. This post helps me very much.

[ REPLY ]
Admin said... @ July 23, 2009 at 7:09 PM

i need help. . i want to put adsense below my post body in a single post but my templates does not contain the code above . what should i do? im looking forward for your reply...thanks

[ REPLY ]
Praneet Agarwal said... @ August 15, 2009 at 5:21 PM

@ rhakeru

friend if you just want to put adsense code in a single post, you better parse the adsense code and add it with the post content itself.

[ REPLY ]
Mohamed said... @ September 18, 2009 at 7:18 PM

thanks...it've worked for me..but sometimes when i refresh the page,..the ads above the post body don't be displayed though i'm sure the no of ads aren't over 3 in one page..do u know what is up?

[ REPLY ]
dr.chirag said... @ November 12, 2009 at 4:40 PM

thanx dear for your amazing service lets do link exchange please comment on me also thanx-
http://mobilehulk.blogspot.com

[ REPLY ]
CCNA EXAM said... @ December 23, 2009 at 6:21 PM

nice post.I apply it in my blog. But is it not the violation of adsense policy?

[ REPLY ]
Web Development Works said... @ December 14, 2012 at 7:26 PM

Good work :) but I am not getting? Can u elaborate it once.
WEB Application Development

[ REPLY ]
Unknown said... @ June 20, 2013 at 11:36 AM

I just read through the entire article of yours and it was quite good........ by OPS 571 Final Exam provider.

[ REPLY ]
Ideation Fashion said... @ June 21, 2013 at 12:52 PM

Wonderful job. thanks for sharing such a good job. hermes lindy bag

[ REPLY ]

Post a Comment