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
Hey,
[ REPLY ]When i add the code for adsense showing only on a single page no posts are showing up.
Dear HCG i didnt understand what exactly the problem is. Can u plz tell me more clearly.....
[ REPLY ]really a great post friend. This post helps me very much.
[ REPLY ]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 ]@ rhakeru
[ REPLY ]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.
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 ]thanx dear for your amazing service lets do link exchange please comment on me also thanx-
[ REPLY ]http://mobilehulk.blogspot.com
nice post.I apply it in my blog. But is it not the violation of adsense policy?
[ REPLY ]Good work :) but I am not getting? Can u elaborate it once.
[ REPLY ]WEB Application Development
I just read through the entire article of yours and it was quite good........ by OPS 571 Final Exam provider.
[ REPLY ]Wonderful job. thanks for sharing such a good job. hermes lindy bag
[ REPLY ]Post a Comment