97 Responses to “Blogger – How To Add Adsense Inside Single Posts Only”

This page contains comments from the Blogger – How To Add Adsense Inside Single Posts Only article.

  1. Great post Stephen,
    I just found you site and really liked the initial page I read. I have subscribed to your RSS feed for post updates.
    Thanks for the great info.

  2. I have to say I was looking for a similar thing but for WordPress blogs? I know how to add it to every blog post but I want it so I can add them to individual posts.

    I get too worried about the ‘maximum number of ad spaces per page’ Google rule.

    Thanks for the information though as I can implement it on a few blogger blogs I have.

    Cheers

  3. Hi Stephen,

    Great idea from you, i never think before about it, well done.

  4. Alfred says:

    Thanks for the ping back to my site, came here to check the post but I think i actually learnt some new things like wrappings the adds.
    Will subscribe to this blog. Thanks again

  5. seo ???? says:

    Stephen, thank’s, can I translate it into russian?

  6. I had no clue on how do customize my blogging platform, I will study this post and figure it out. Thanks!

  7. I do something similar on WordPress, but this is great for anyone who doesn’t know how to crack open the WordPress ‘engine’ and make changes. Nicely done.

  8. Janet says:

    Like Max said, there are people who like this have no idea (I, for example.). So thanks for the info.

  9. Peet says:

    I had no clue on how do customize my blogging platform, I will study this post and figure it out. Thanks!

  10. I have also found that adsense in the sidebar preforms pretty well.

    I need to go back and spend some more time on it, but about a month ago I spent a few days optimizing all my sites. I created a simple function that placed the ads on pages based upon their title and category. This makes tracking which ads are preforming much easier. It also makes adding ads easier, because I can simply call the function, rather than having to insert the google code…

  11. Victoria BC Travel Guide says:

    Blogger is a great place for beginners but gets limiting really quick when you want to customize. My dad is on blogger and he is happy to be able to have a simple interface in which he may expound to the world. Heaven forbid he would want to do anything else then I would have to introduce him to wordpress. Baby steps.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  12. Blogger SEO says:

    Nice, i dont think this information can be explained more beautiful than this. Nice work Stephen.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  13. Great post. I have taught myself everything I know, and am missing so much… posts like this are greatly appreciated!

  14. Blue Background says:

    Thanks for the code. It makes it easier to move adsense ads around while you test which ones make you the most revenue.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  15. Thanks for the code, im thinking about doing the same thing, im not rly good with this sort of things tho :(

  16. hai Stephen
    today i read your many posts which are full of information and new interesting things. Inserting the Adsense in between the post is a really very good idea. I wanted to do the same but i didn’n know how? but now have find the answer and i am going to implement on my blog.
    thanks

  17. I had considered using blogger for my sites a few times, but just hated all the limitations…not to mention Google keeps a small chunk of your adsense revenue. (Which I guess for some doesn’t matter? But I’d rather pay $7 for the domain and keep that 20%!) So for me, it is wordpress and only wordpress.

    But you’ve got a great point that anyone using adsense should know: ads in the post itself really do make the most money! If someone only would have told me that a year ago!

  18. Andrei says:

    SMart tactics, good way to add more profit with adsense to your site

  19. Sulis says:

    I agree with you to insert adsense between posts. I have proved it to my high CTR.

  20. I never thought about adding adsense in between posts. I usually just have it on the right or left column. Seems like a good idea to increase CTR. Thanks!

  21. Avinashtech says:

    i am trying to put the ads just below tiles of posts on home page and i am partially successful too but my problem is , after showing three adsense ads in 3 posts, the other posts on home page show Blank space( same size as that of adsense).. any help?.Mine is a customised template

  22. Wendy@online sweepstakes says:

    Thanks so much for the instructions. I wasn’t sure how to find what I was looking for in Google to come up with this solution for only showing Google Ads in single posts but I’m glad I stumbled across your site. I know how to “hack” the HTML and make ads ONLY appear on the homepage but the other way around was a different story. Now to test and make sure it is working properly.

    Thanks so much (Grizzly would be proud) Wendy

  23. arshad says:

    i have tried this before but forgot to do the ad code conversion – thanks a lot :)

  24. I personally have had little success making the “big bucks” from Blogger, but to be honest, I haven’t really put in the effort – so it is my fault.

    But I think that I will try what you have advised above and see what I can do – I have a couple of niches that I was going to make a website for anyway, and by using Blogger, my investment will be nothing but time.

    Thanks for the ideas you wrote here, I’ll try them out, and hopefully report back with my results.

  25. sagar says:

    hey friend my site is way2hight.blogspot.com i want to put the ads after one blog but i can’t find
    ## waht should i do please tell me
    And thnks for other information

  26. Funny how this is still so complicated with Google’s own product. You would think Adsense would be able to be better integrated into Blogger by now.

  27. I thought this is impossible until I’ve read this post. Blogger don’t allow it to customize the placements of the ads. I will try your suggestion to my current blog on Blogger. Thank Step!

  28. Lori says:

    Some really great tips. I agree with the earlier comment that it seems a little strange that Adsense, a google product, wouldn’t be more agreeable with Google’s own Blogger setup.

  29. Tony Lee says:

    Thanks a bunch for those tips Stephen. It sure opens up our options for using Blogger.
    Thanks!

  30. I am using WordPress and haven’t tried Blogger yet. I didn’t know Blogger has a built in option to display adsense. Well, I guess I must try Blogger soon. Thanks for enlightening us about Blogger with this post.

  31. Tina - Tattoo Removal says:

    These are cool tips. I haven’t tried it before because i thought it was not allowed on blogger. Thanks for the tips!

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  32. Thank you for explaining this. I know how to do single posts with adsense for wordpress but didn’t know how to acheive this using blogger. I appreciate the detail as many sites do not go into step by step and us non-techies can get lost.

    Deb

  33. This is great tips Step. But can you help me? I want to show my adsense in a non plain background so do you have an idea on how to show adsense w/ transparent background?

  34. Puja Roy says:

    Hello Stephan,

    I applied your trick to show ads in a single post, but it’s not working for me.

  35. Serene disc repair says:

    Puja, just read the article again, maybe something you’re missing. i went to use his tricks and its working fine.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  36. Adam@Tattoo Removal says:

    Blogger is OK to start with, but I think more advanced online marketers will almost always want the extra features that self-hosted WordPress offers. I find myself using special plugins all the time to enhance a website.

  37. Katrina Kaif says:

    Yeh !!! Last night I just wanted to do the same thing and searching finally i got a small peace of code and i was on way.

    The thing i made it with Google pages to wrap my adsense code like Image in right side of content you can see it here distance.openuniversity.googlepages.com

    I think this is a code you can use to put your adsense code right or left side of your content with any content. no matter blogger or wordpress

  38. Data entry says:

    Thanks Stephen, i really had to know about this. I knew that there is a way to use it but i couldn’t found it now i am going to add my adsense.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  39. Shawn @ Adsense Alternative says:

    Nice post. I’ll admit I have never considered blogger for this kinda thing. While it’s somewhat limiting, it does have it’s uses.

  40. Chamsoo says:

    Thank you Stephen,
    But There’s an error.
    Two ==> two .
    In your first code there’s two and one .
    Add an other .
    Thanks.

  41. Chamsoo says:

    Two <div and on </div

    • Hi Chamsoo,

      No error. As I said above: The first and last lines should already exist in the template, the rest is what you’re adding.

      So the first <div> already exists, you’re not adding it. There is a </div> for it somewhere further down the template. You only add one <div> and one corresponding </div>.

      Hope that makes sense.

  42. Bert@Hectic Capiznon Bloggers 2009 says:

    I tried this on my blogger blog but I am having trouble implementing it. I should get through your instruction again, I might have missed something. BTW, I saved this document on my PC for future ref. Thanks.

  43. this code is working with selected or randomly any customized template but not all. i have been trying to add it in my present blog but :( the format of add was being changed.

    finally left it and decided to not put adsense in for a while…

    gonna try today…

  44. peter says:

    nice article and i interested about your information how Put Adsense Ads Within Posts

  45. Analekto says:

    Well written article, well done.
    Should anyone be interested I have documented a method here on how to add two AdSense units anywhere within the new blogger post body.

  46. Stephen, thanks for this tutorial I am considering using Adsense at least when I have more posts in my two little blogs. But for now I am busy trying to write stuff for them. I will be sure to drop by again because I do not know a thing about code.

  47. I like having Adsense inside my posts. Blogger doesn’t have an easy option for you to do that. Thanks for giving the instruction on how to do this.

  48. Jay@BloggerIndonesia says:

    I have tried this several times.. and the result is quite good.. :)

  49. Stephen, love your site. I think that it is important to put adsense on single pages and not just the whole blog. That is one reason blogger is a limitation.

  50. Great post on adsense. I am thinking of implementing it and now I know how to do it on single pages!

  51. Pipo says:

    Hi. I’m having trouble here. I tried showing adsense within posts and it worked. When I tried showing adsense in single posts, it failed. Any idea how to fix that?

    Thank you so much in advance.

  52. Pipo says:

    I was able to make it work now! Finally. Just one question though. How do i put margin between the ad and the post content? The post content is touching the border of the ads.

  53. train horns says:

    Hi. This is a very helpful tip. specially for beginners in blooger who wants to boost up their adsense. Adding adsense in every post. Whew! love your post man.

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  54. Jason says:

    I agree with them that this is a great help to be able to customize especially for newbies. Keep it up!

  55. This is great way to get more clicks with the adsense inside posts. It is better than putting them on sidebar.

  56. I actually havn’t tried blogger yet, can it outbeat wordpress?
    by the way slick design mate!

  57. WordPress is far more better than blogger because it is more flexible and also opportunities for earning in wordpress is more than blogger.

  58. Hi.. I have a blog and i would like to publish adsense’s advertisements on just one of my entries.

    I currently have a working adsense account, but ‘simply pasting’ the adsense code into that particular blog-entry doesn’t work.. ie,nothing appears.

    I only wish for the adverts to appear on just this one post (and not for the other entries), how can i go about doing this? Thanks!!!

  59. This looks really simple after all that explanation. Thanks.

  60. Seems like a good idea to increase. Thanks!

  61. Thanks for the post, it really works on SEO too.

  62. Hi,
    I ‘ve added my adsense code above this code like in your example, but after 1 hour nothing happened. Usually adsense add appear after 10 minutes, and in this time this area is blank. Probably I do something wrong but I don’t know what.

  63. John@????? says:

    what kind of traffic do you need to actually make money of adsense, I mean if I have 100 uniques a day, will I even get money for a post that let’s say gets 50 pageviews a day?

  64. John@????? says:

    what kind of traffic do you need to actually make money of adsense, I mean if I have 100 uniques a day, will I even get money for a post that let’s say gets 50 pageviews a day?

  65. Sar@Sar Life says:

    I did not realize blogger allowed that level of control. Good stuff!

  66. Jay@ Love Poems & Love Quotes says:

    I profit from adsense very well. Blogger is very user friendly with adsense too. I just love the integration it is superb.

  67. I just know that we can’t place any Google Adsense inside the post content.
    Now i’m going to make them between the post. ;)

    Great tips.

  68. Boffill says:

    Thank you so much for this one! It really helped me a lot position my adsense ad units in my blog! Thanks!

  69. Boffill says:

    Sorry for this follow up comment. Anyway, I just wanna inform you that I’ve seen a blog that has adsense unit in within the middle of the post. I think its from bloggerbuster.com I’m not really sure which blog is it but yes, I’ve seen one. Anyway, you are a very big help to me and my blog!

  70. DFB says:

    Hi,

    Thanks for the information. Actually, I implemented the single most thing on my blog, even before reading this post.

    I stumbled upon this page looking for something which is a bit different from what you mentioned and can complement your approach very well. Here’s what I am looking for:

    For the item page, I want exactly what you mentioned in this post. However, for the main page, I want the adsense unit ONLY and ONLY on the very first/topmost/latest post. I don’t want it on the second, third or subsequent posts. Only on the first/topmost/latest post. Is there a way to achieve this on blogger?

    I have been searching for this info for past many days but haven’t had any joy so far.

    Looking forward to some insight from you.

    Thanks.

  71. Ajit Kumar says:

    Hi Stephan,
    I followed every step, but there was an issue. My Ad is displayed on the first three posts, but not thereafter. Thanks a bunch for sharing though. Appreciated. Do take care and have a great day!

    Regards,
    Ajit

    • Techno Primer says:

      Hi Ajit,

      Your problem does not concern the codes given by stephen, I can assure you that the code works. It has to do with googles TOS, google only allows 3 ads to show on a sinlge page. If you happen to show more than 3 post in a page, google ads will only appear on three of your posts and will not show on the rest.

      Hope that helps cheers

  72. Techno Primer says:

    Hi Stephen,

    Thanks for sharing the code


    PUT YOUR CODE HERE

    It did not only help me solve my adsense problem but it also solved my “related post” widget problem. Through trial and error I found out that i can actually use this code not only to show adsense but other widgets and codes too.

    Kudos to your mate and keep it up

    Cheers

  73. There is far better way to do it-without modifying adsense code and even without visiting adsense.
    Example is my new blog(click up there to see)

    Same process until copying and pasting your adsense code-instead you just put this line:

    -you can choose right or left to be blended

    Why do i write this?Simply cause method above was pain in the ass to do it and it wasn’t showing ads at all!

    There are few more steps prior doing it but i think everyone here knows what to do-beside that this is your tutorial…..

  74. Damn! it’s not showing the code-here it is again(?)

    -this is how blogger shows your ads anywhere!

    Sorry for double post!

    • Hi OH,

      WordPress has stripped your code out. I’m interested in your solution, so I hope you see this and try again. Next time, try putting <code> before your code and </code> after it.

  75. Vinod Kumar Jadge says:

    Hi Stephen,

    Thanks for the solution mate, I implemented this simple technique on all of my blogger
    blogs and works like a charm.

    I didn’t get how OH (in the last post ) implemented this but with your solution I just put the adsense code in the notepad ++ and find and replace does everything, Wrap the code and done. :-)

    Thanks again

  76. Allan says:

    hello,

    thanks for this tutorial..the instructions is really complete and easy to follow for non-tech savvy like me. but i want to put my ads and widgets about the title post…how can i do it?

    Thanks in Advance.

  77. Allan says:

    i mean above the title post..not about.. LOL..

    thanks. :)

  78. Sherified says:

    Thank you so much! This article is a big help.
    I’ve been looking for tutorial on how to add adsense code in blogger template.
    This is my first time using blogger, since my self-hosted domains before has now expired. Now, I’m using a free blogsite to earn money again.

  79. Jerry says:

    I really enjoyed this topic very helpful, though i had idea about programming, i am not well educated in the coding of Blogger Blog so i tried many thing in the XML code but the needs weren’t fulfilled, when i tried to put the adsense code between single content(My intention) the ads also appeared even in home pages other contents.

    with your tutorial i got good example of Editing Blogger code not only with Adsense integration also other parts of blog

    Thank u very much

  80. Daniel White says:

    Thanks for this, I was getting rather frustrated of trying to figure this out for myself and just couldn’t get it to work.

    The blog.pagetype part did the trick and now my AdSense ad is now showing correctly right under my single post page title. :)

  81. Budi Murjiyanto says:

    Thanks Man … i like your tut

    but i have recommended with this way.

    http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=72821

    Thanks You

    regards

    Budi

  82. gie says:

    Sorry, if in case that you delete my previous comment which is my important question here it is..(I never notice the rules here, my apologize)

    Hello! If I would put the adsense code for a single post, it would automatically delete the other adsense on my home page?

    • Hi Gie,
      Actually it was just in moderation…
      Adding the code for a single post won’t change it on your home page. You may have to be careful that you don’t go over the three ad units allowed (although I think Google just won’t serve the extra ones up if you go over).

      • Hi Stephen! Thanks for the fast reply!! I am not sure if my blog exceeds the three allowable ads..can you take a look please?? I already deleted the one the I formerly added..but I would like to be sure..please check it..

        • Hi Gie,

          Just had a quick look and it seems that more than three are showing on the home page – one for each post. Maybe you’re missing the lines before and after you’re Adsense code:


          PUT YOUR CODE HERE

          If those lines are there, it shouldn’t show the in-post ads on the home page, only on the post itself – and that will stop it showing too many.

          Of course it’s been a while since I wote this and Blogger has changes a bit, so it may be that those lines no longer work (but I’d be surprised).

          • sorry for the dumb question..I don’t really get it…

            What code you want me to put here??

          • Hi Gie,

            Whoops sorry, the code didn’t show properly. I meant to say:

            <b:if cond=’data:blog.pageType == “item”‘>
            Your Adsense code
            </b:if>

            You have already put your Adsense code into the theme. It just needs the first line and 3rd lines to be put around it.

            Hope that makes more sense.

          • Hi Stephen!

            I got an error…it 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 “cond”.

  83. sorry for the dumb question..I don’t really get it…

    What code you want me to put here??

  84. St Pete Guy says:

    This is the second website I have found basically the same information and I would like to try this idea but now that you have said I could get banned by Google if I do it wrong I am a little hesitant. I am not great at editing html so this worries me some. I certainly want to add adsense to my posts but at the risk of doing it wrong and getting banned I am having second thoughts. Is it as difficult as it sounds?

  85. pavan says:

    First have a look at my blog…
    http://bestfacebookprofilepictures.blogs…

    Problem is:
    i have chosen premium template from http://www.btemplatebox.com/2010/11/prem…

    But when clicked on ‘ads between posts ‘ then the next post after the ad is coming down,

    i want ad to be displayed like common post in continues with posts,,,

    hope you got it,,
    please help…
    thnk u,,

  86. Bob says:

    Wow. It worked for me but I did not parse the code but it worked still. The parsing is for the old blogger or for the new blogger platform?

    Thank you.

Leave a Reply

Anti-Spam Quiz:


Stephen Cronin

is Manager of Online Service Delivery at a Queensland Government department & has been a freelance WordPress developer/consultant since 2007
*Content on this site is my own and is not related to my employer

Hire me - I'm expensive, but I'm very good!

WordPress Plugins

Want a Custom WordPress plugin? See my Services page.

Greasemonkey Scripts

Visit my home page at Userscripts.org.