Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.
How to put google adsense block in the middle of the post
In normal cases all blogger users can put the adsense block at the top of the post or at the bottom Only.
but the problem here is that alot of bloggers don’t get high CTR ( clicks ) by this placement,
so they should play with the ads placement,
the best solution here is to put you google ads blocks in the middle of the post in your blogspot blog.
and you have to check out Google AdSense heat map
blogger don’t offer this option by default settings, so you have to be tricky to do it,
here is easy and fast way to do it.
go to your blogger account, and navigate to Layout >> edit html, and check check Expand Widget Templates
Find the tag :
And replace it with the following code.
Note that you must replace
with block code provided by Google.
Now you are done, just to put your google adsense block in the middle of the post, you have to put this code
in the exact place you want to put AdSense block.
and now you are done.
Related Tricks & Tutorials
Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here
Try Advanced Blogger Templates Search >> 



thanks i love it too much
Thank You For Your Trick.
Thiwakorn, indoshared, thanks too much, i wish you better earnings
Very good information, thanks too much.
thanks Diseño Web Cusco
i need help..
hi admin..i have 2 data:post body..which one should i replace??..and one more thing, adsense code need to parse first before put into template code?
da best. Keep it going! Thank you
Taufik, i think you should save your template before doing any changes, and then, try to add the code in both places and see what happens,
about your second question, sorry i don’t understand you.
nevermind Max . i made it..thnx for ur tips..really appreciate your work
you are always welcome here Taufik
I rarely comment on blogs but yours I had to stop and say Great Blog!!
Wow… thanks friend… It’s good tips. Keep writing!
hi Hendriono
thanks for your nice comment.
I was in search of such great tips. Thanks for sharing. Would you mind telling us how to put adsense code in the template so that the ads appear just underneath the header.
i see some other ways to add ads in posts but it was really good hack….
funny scraps
A blog for all about humor and funny scraps….
I tried doing this but I wasn’t able to see the ad.
Thank you so much.
very nice.This is really good
Oh Thank Youuuuuuuuuu.
thanks a lot buddy…
not working.
what do i have to add in my post for ads to appear
thanks all, cheap propecia, humour and all visitors, and if some bloggers ads blocks doesn’t appear, please check you adsense account,
thanks very good trick
CAn’t get working on my site http://www.socceryoutube.com/
maybe because is custom?
hi JR
actually the is no any difference between custom domain and the normal blogspot blogs, it’s only the name, and this shouldn’t affect your blog, it should be customize able as the normal blogger blog. just double check the steps, and tell me whats wrong with your blog.
Very nice site!
can i get the template of your website?It is very sexy………
Hi aswin
i’m afraid that we are NOT using blogger for this site aswin.
i’m very sorry.
XML error message: Attribute name “:post.id” associated with an element type “data” must be followed by the ‘ = ‘ character.
Why I m getting this error?
hi rocky,
what template do you use?
make sure to check on expand widget box on edit html page.
XML error message: Attribute name “:post.id” associated with an element type “data” must be followed by the ‘ = ‘ character.
Why I m getting this error?
I also check the expand widget box on edit html page. i m using templet from your website.
Thanks a lot.^_^
** You try to check “:post.id”.
ex. data(don’t space):post.id
Good luck
hi..any chance to put other code from others advertiser?
hi peyoh,
you can use the same method to do it.
hi ,
i m facing problum i have 2 codes in blogger with this name (()) when i replace they give me ” XML elements are closed properly ” Error
kindly help me thanks,
good post i find but some problem with my template i find and replace but some problem this error
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Attribute name “:post.body” associated with an element type “data” must be followed by the ‘ = ‘ character.
what should i do ?
hi suvry, please make sure to past the code exactly as we presented it here.
and tell us if you still have the same problem.
sorry dear it still have the same problem please help me to do that
Hi i need help
I did as u said but , i got the following errors .. what is wrong ?
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Attribute name “:post.body” associated with an element type “data” must be followed by the ‘ = ‘ character.
Thank u
manoj
hi all, please note that this trick is not working with a lot of bloggers, so please wait until we add another one that will work 100% for every blogger. thanks for waiting,
Pls help I can not save because it says:
Your template could not be parsed as it is not well-formed. Please make sure that all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “expr:id”.
Thanks Max IT Work
My blog don’t have
Any idea?
My Blog don’t have
data :post.body
Any idea ?
mm , what is the code i should put where i want my ads to show up ??
Regarding the problem like this one, XML error message: Attribute name “:post.body” associated with an element type “data” must be followed by the ‘ = ‘ character.
You need to parse the double quote “, the equivalent parse of double quote is this one "
I hope it will you guys because i experience it and parsing of double quote help solve my problem.
visit my blogsite if your are interested in Anime, you can download directly the anime series you like.
max! miss something in this tutorial, just put this tag in the article you want to post in your blog, this represents were your ads placement. For me, I put it in the 3rd paragraph of my article.
regarding in my first comment it seems that the equivalent code of the parse double quote did not appear. Just go to this site http://www.blogcrowds.com/resources/parse_html.php and put ” there and hit the parse button.
thanks for the tutorial, here’s what I’m always looking for…….
Hi all, I updated the codes and i wish it’ll work for you all,
thanks for waiting,
max
one of the nice way to increase revenue. I am surely gonna use on my new blog. http://fullnepalisongs.blogspot.com/
Thanks.
gracias amigo
sorry to interrupt, if not mistaken, we need to add this code”” in our post to determine the place the add will be in the post.
Title
———————–
———————–
———————-
———————-
———————-
because the ads be in the middle when i add this
This is brilliant!!
Thank you! Does this also work on doing it before the fold? Or there’s a different coding specifically for that?
@ Rabins, andresfanatico And Cristiano thanks for commenting, i wish you all earn alot of $$$$ from adsense.
@ wniizzati ok, this is an old way to do it, but the problem with your way is what if you want to change the ad size or code in all your posts, in my way, you will change it only one time in your template, but in your way, you’ll change in in every single post.
@ gene + experiments if you want to add your ads above the fold i prefer to add it from your page elements page.
wow thanks for the helpful information.This is the bomb
i am getting error
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.
please tell me how to add code
hi karan
please check your copied code again, i fixed this trick and it’s 100% working now, make sure to copy all the code.
will it work with another adds other than adsense such as adbrite
@ vishirockz, yes vishirockz, sure it’ll work.
thank a lot.. i’ll try..
max bro plese help me, i have adsense acount but i dont know where to find adsense code
@ sachin, this is a very easy task to do, and you can search in google help to know more about it, the easiest way to do it is to create a new ad, and click get ad code from your account.
i wish this will help you.
this trick not work for me plz uplod other trick
It did work for me. when i save my template this came out..
“Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Attribute name “:post.id” associated with an element type “data” must be followed by the ‘ = ‘ character.”
Muito bom, funciona perfeitamente.
i could not find the tag (
hi kismat, please check expand template widget to find the tag,
and i’ll add another tutorial soon.
its not working on my blog help me plz
hi citydl, please note that i mentioned before, this trick is not working for all templates, i’ll try to post another one soon.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Attribute name “:post.id” associated with an element type “data” must be followed by the ‘ = ‘ character.”
this error apperars
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.
admin i have this errors…
how to fix this errors
i am also getting same error as HumanityLife is facing
hadadjus Submit on mercredi 26 mai 2010 10:41:42:
Message d’erreur XML : Open quote is expected for attribute “{1}” associated with an element type “style”.
please help me
Great Post dude
Is it just me.. because i am unable to see any code above !!!!!!!
where is the code ?????