how to place adsense inside blogger on top post title

How To Get Started

==> Log in to www.google.com/adsense
==> Click on "My ads" tab
==> Click the "New ad unit" button
==> Select the 300x250 Medium rectangle ad size
==> Fill other options, save and get your ad code.
Now, we need to parse the ad code.

==> Go to http://www.freehtmlparser.blogspot.com/
==> 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 left side inside your post
    <b:if cond='data:blog.pageType == "item"'> 
    <div style="float:left;">
    Paste your parsed adsense code here
</div>
    </b:if>

==> 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 
</div>
    </b:if>

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

==> 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 www.blogger.com
==> 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