How To Add Adsense To Blogger Posts Using New HTML Template Editor

Adding Google ads inside Blogger posts is highly recommended if you really want to get the maximum clicks on your ads. There is no way someone will read your blog post without seeing the ads, be it under the post title or immediately after the blog post.
The Adsense ad at the top of my blog posts is the best so far; even earns me more money than the 728×90 leatherboard ad unit. So, if you are yet to insert Adsense ads inside your Blogger post, try to do so and see if your Adsense revenue will increase or not.

Placing the Google ads inside your blog post is not possible without having to edit your blog’s HTML template. You cannot insert the ads with Blogger widgets just as you do on the sidebar, header or footer sections of your blog. Even if you place the ad codes in the wrong location in your HTML, the ad will not display when you view your blog. 

Today, I am sharing with you, the correct way of adding Adsense ad codes inside your blog posts using the new Blogger HTML template.

How To Get Started

==> Log in to
==> Click on “My ads” tab
==> Click the “New ad unit” button
==> Select the 300×250 Medium rectangle ad size
==> Fill other options, save and get your ad code.

Now, we need to parse the ad code.

==> Go to
==> Copy and paste your ad code inside the box and click the “Encode” button
==> Copy and paste the code somewhere eg in a notepad

Now you will add your parsed code in the codes below before using it in your blog’s template.

==> If you want your ad to display at the center inside your post

    <b:if cond=’data:blog.pageType == “item”‘> 
    <div style=”text-align:center;”>
    Paste your parsed adsense code here

==> If you want your ad to display at the left side inside your post

    <b:if cond=’data:blog.pageType == “item”‘> 
    <div style=”float:left;”>
    Paste your parsed adsense code here

==> If you want your ad to display at the right side inside your post

    <b:if cond=’data:blog.pageType == “item”‘> 
    <div style=”float:right;”>
    Paste your parsed adsense code here 

The codes above are conditional tags that restrict the Ads to post pages ONLY.

See also :   All Your Posts Not Displaying on Your Blogger Homepage? The Solution

==> After adding your parsed codes inside the conditional tags above, copy and paste it somewhere. The customized code is what you will paste in the template.

Now, we need to add it to the new blogger HTML template

==> Log in to
==> Go to “Template” > “Edit HTML”
==> Once the HTML loads successfully, click inside it
==> Press CTRL F on your keyboard to bring up the “find” box as seen below

==> Copy and Paste <data:post.body/> in it and hit the ENTER key on your keyboard. This will help you locate the code in the HTML.

The code might appear more than once in your HTML. So, click inside the find box and hit the ENTER key again. You will know if it appears more than once if you look closely at the corresponding “line number” on the left side of the new Blogger HTML editor as illustrated below.

Now place your Adsense customized code in this way:

If you find <data:post.body/> more than once in your template, paste your Adsense code above the SECOND and THIRD <data:post.body/> if you want your ad to be displayed below the post title/at the top of the post.

If you want it to display after the post, paste the code below the second and third <data:post.body/>. Alternatively, you can find the second <div class=’post-footer’> and place the ad code directly under it. You can also place it under <div class=’post-footer-line post-footer-line-3′>

Save your template and view your blog. The ads should appear in your post.

NOTE: Only three ad units can be displayed per page. So, if you already have three ads units on your page, the ad in your post might not display.

I hope this helps.

Questions? Contributions? Kindly relay them via comments.

Recommended: How To Add Adsense After Blog Post

Spread the love :

Written by jidetheblogger

Pro Nigerian Blogger, Digital Marketer and Web designer. I help business owners to grow their businesses online. You can join my Facebook Group here.


Leave a Reply
  1. Thx alot Jide. I will definitely try it when I get to the office 2mao because I don't think I can do all these on my phone.

  2. Pls Mr. Jide;I have been finding it very difficult to work on my htmls eversince the new blogger interface was launched….When I strike CTRL F and put the codes in the box, they don't appear…I even took time to look for some of them manually but none worked out..Don't know what's wrong. I know there used to be an expand widget radio button before but it's not on the new interface.Please, I will be very grateful if you can help me out and probably write an article on it for others who have same problem.

    • @ Ameh Sunday,

      The same happened to me. What I did was that. I make sure I click first inside the EDIT HTML codes box as if i wanted to start editing the code and I then carefully click "Ctrl + F1" and the box comes up with the EDIT HTML code editor and not the one that shows below the browser. I then paste what ever code am search for there and click enter also with care to avoid spacing in the main code in case it couldn't locate the code am searching for.

      Hope that helps!!!
      well done oga Jide another comment comming next to this also from me as touching this post.

  3. Perhaps this might not be the right thread for my question…but am sorry for this.
    Mr Ogbonge I have heard good remarks about you from friends…you're really doing great works here. Please I need to know how to make my post display in form of snippet. My posts keep displaying all its content in full…please help me.

  4. what command should i used if i want to display at the center of the post

    ==> If you want your ad to display at the right side inside your post
    ==> If you want your ad to display at the left side inside your post

  5. this is really helpful thanks a lot but I followed every dtep you gave and after I pasted my code and saved it said error pls wat do I do

  6. My problem is how to make adsense display after first paragraph in mobile view. I have alredy gotten right it in desktop view. My help a sister here. Mr Jide?, Anyone?

  7. thanks bro for this message please i try to do this this the error i was getting

    Error parsing XML, line 1515, column 12: Open quote is expected for attribute “cond” associated with an element type “b:if”.

  8. thanks bro i also recieve the same message.

    Error parsing XML, line 2255, column 16:
    Open quote is expected for attribute
    “cond” associated with an element type

  9. Mr Jide, I did the application, but the ads is not showing on my blog. But it show on another site… And in that that it’s showing, I got no record in the dash board,.. It’s still 0.00
    help please

Leave a Reply

We're glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy. Your email address is required but will not be published. No keyword stuffing in the name field and commenting from blah blah blah makes no sense. Thank You.

  • Right Now, You Can Get Domain Name For ₦499Learn More
  • You can now convert airtime to cash in NigeriaLearn More
  • Forum Alert
    You Can Now Post Questions and Tutorials at Our Forum.Learn More

How To Join Affiliate CPA Networks and Get Accepted With Ease CPM Ad Network That Pays Bloggers Even If Readers Don’t Click On Ads