Home » Blogger Tutorials, Tricks and Hacks » How to put google adsense block in the middle of the post

Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.

|| View All Tutorials ||

How to put google adsense block in the middle of the post

How to put google adsense block in the middle of the post

1 Star2 Stars3 Stars4 Stars5 Stars

Report Error

15,543 views

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.

Liked It ? Please Share

Comments

79 Responses | Post A Comment | Subscribe To Comments RSS Feed

  1. indoshared says:

    thanks i love it too much

  2. Thiwakorn says:

    Thank You For Your Trick.

  3. Max says:

    Thiwakorn, indoshared, thanks too much, i wish you better earnings

  4. Very good information, thanks too much.

  5. Max says:

    thanks Diseño Web Cusco

  6. Chan says:

    i need help..

  7. Taufik says:

    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?

  8. da best. Keep it going! Thank you

  9. Max says:

    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.

  10. Taufik says:

    nevermind Max . i made it..thnx for ur tips..really appreciate your work

  11. Max says:

    you are always welcome here Taufik

  12. I rarely comment on blogs but yours I had to stop and say Great Blog!!

  13. Hendriono says:

    Wow… thanks friend… It’s good tips. Keep writing!

  14. Max says:

    hi Hendriono
    thanks for your nice comment.

  15. birdy says:

    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.

  16. 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….

  17. ladykristinn says:

    I tried doing this but I wasn’t able to see the ad.

  18. very nice.This is really good

  19. Free Skins says:

    Oh Thank Youuuuuuuuuu.

  20. humour says:

    thanks a lot buddy…

  21. mohit says:

    not working.

    what do i have to add in my post for ads to appear

  22. Max says:

    thanks all, cheap propecia, humour and all visitors, and if some bloggers ads blocks doesn’t appear, please check you adsense account,

  23. black rose says:

    thanks very good trick

  24. JR says:

    CAn’t get working on my site http://www.socceryoutube.com/
    maybe because is custom?

    • Max says:

      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.

  25. John903 says:

    Very nice site!

  26. aswin says:

    can i get the template of your website?It is very sexy………

    • Max says:

      Hi aswin
      i’m afraid that we are NOT using blogger for this site aswin.
      i’m very sorry.

  27. rocky says:

    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?

    • Max says:

      hi rocky,
      what template do you use?
      make sure to check on expand widget box on edit html page.

  28. sulltan says:

    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.

  29. spadoz says:

    Thanks a lot.^_^

    ** You try to check “:post.id”.
    ex. data(don’t space):post.id

    Good luck

  30. peyoh says:

    hi..any chance to put other code from others advertiser?

  31. sulltan says:

    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,

  32. SAVRY says:

    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 ?

    • Max says:

      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.

  33. SAVRY says:

    sorry dear it still have the same problem please help me to do that

  34. manoj says:

    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

  35. Max says:

    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,

  36. joey says:

    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”.

  37. joe says:

    Thanks Max IT Work :)

  38. Gym says:

    My blog don’t have
    Any idea?

  39. Gym says:

    My Blog don’t have
    data :post.body
    Any idea ?

  40. Rafael says:

    mm , what is the code i should put where i want my ads to show up ??

  41. lyndon says:

    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.

  42. lyndon says:

    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.

  43. lyndon says:

    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.

  44. thanks for the tutorial, here’s what I’m always looking for…….

  45. Max says:

    Hi all, I updated the codes and i wish it’ll work for you all,

    thanks for waiting,
    max

  46. Rabins says:

    one of the nice way to increase revenue. I am surely gonna use on my new blog. http://fullnepalisongs.blogspot.com/
    Thanks.

  47. wniizzati says:

    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

  48. Cristiano says:

    This is brilliant!!

  49. Thank you! Does this also work on doing it before the fold? Or there’s a different coding specifically for that?

  50. Max says:

    @ 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.

  51. israel says:

    wow thanks for the helpful information.This is the bomb

  52. karan says:

    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

  53. Max says:

    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.

  54. vishirockz says:

    will it work with another adds other than adsense such as adbrite

  55. evoel says:

    thank a lot.. i’ll try..

  56. sachin says:

    max bro plese help me, i have adsense acount but i dont know where to find adsense code

    • Max says:

      @ 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.

  57. sachin says:

    this trick not work for me plz uplod other trick

  58. 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.”

  59. gadarf says:

    Muito bom, funciona perfeitamente.

  60. kismat says:

    i could not find the tag (

    • Max says:

      hi kismat, please check expand template widget to find the tag,
      and i’ll add another tutorial soon.

  61. citydl says:

    its not working on my blog help me plz

    • Max says:

      hi citydl, please note that i mentioned before, this trick is not working for all templates, i’ll try to post another one soon.

  62. citydl says:

    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

  63. HumanityLife says:

    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

  64. i am also getting same error as HumanityLife is facing

  65. hadadjus says:

    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

  66. SEO says:

    Great Post dude

  67. Minty says:

    Is it just me.. because i am unable to see any code above !!!!!!!

  68. info net says:

    where is the code ?????

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