7 Adsense beneath Blogger post titles or at end of posts

A key placement of AdSense is within the body of a blog post. You can easily feature ad units beneath every post title or at the end of each post by adding AdSense code to your templates HTML. Here's what to do to achieve this.


  1. Log into your AdSense control panel and choose the ad unit you would like to be displayed. Be sure to keep the width of your posts in mind: some are wide enough to feature a 468x60px banner, while others may be restricted to the half-banner width of 234px.

  2. Copy the code and paste into a text editor (such as Notepad). You'll need to change some of the characters in this code in order for it to display in your blog. Don't worry, this doesn't contravene Google's T&C's for AdSense, as I'll explain later.

  3. Your code will look something like this:

    You'll need to change the < and > in red to the following:
    < = &lt ;
    > = &gt ;
  4. Now, log in to your Blogger dashboard and go to Template>Edit HTML, and tick the "Expand widget templates" box. Ensure that you backup your template before making any changes.

  5. Find this section of code using the search function of your browser (usually CTRL+F):
    <p><data:post.body/></p>

  6. To feature ads immediately after your post titles, insert your AdSense code just before this section in your template. To feature ads at the end of every post, paste the code immediately after instead.

  7. Save your template to see the ads in action!

Do be aware that if there are more than 3 ad units on a page, not all of the ads will be displayed; if you feature a number of ads on your main Blogger page, ads will not display in all of the posts, though they should be displayed on the post pages.

As I mentioned earlier, modifying the AdSense code in the way I have described will not contravene AdSense terms and conditions: all you are doing is substituting the < and > for the HTML encoding for these characters. When you look at the source code for the page, the AdSense code will display as it was originally written. This modification will not alter the functionality of the code at all, and ensures that it will be displayed. The code as first presented will not display in the body of Blogger posts!

For examples of how this code should be implemented into your blog template, take a look at this page (opens in a new window).

Next: How to display ads in the body of the post itself.

Technorati Tags:



7 comments:

February 19, 2009 at 2:50 PM Fred said...

Hello,
Thanks for your useful tips, this blog is really amazing!
I already have a blog and use an Adsense account with some banners on top, left column, ect... but I didn't have any between my posts. I discovered this option when editing the design of the blog posts on Blogger. I am using text links each 2 posts.
What do you think is the best for use, your way adding the code directly to the template or using the Blogger option?
Do they pay the same? because I have notice that since I am using this blogger option , the clicks pay less
Sincerly,

Fred.

March 15, 2009 at 2:18 PM Analekto said...

Hi,
Thanks for the tip that was my first step into embedding adsense in my blog. In case anyone is interested I have documented a method to add two ad units anywhere in the new blogger post body. You can read it here

April 29, 2009 at 6:49 AM john said...

Adsense always takes new steps for its publishers.

May 8, 2009 at 12:04 AM
Anonymous said...

Amanda, Please help me, i want my adsense appear just in single post, not home and archieve. Adsen limit just 3 ads unit, when I click archieve/label post, there are blank space in the fourth post. How to fix the problem?

July 11, 2009 at 12:27 AM investors times said...

I find this post quite interesting. I have been tring to place a widget in the post. Keep the hsrd work

July 21, 2009 at 6:54 AM ali said...

Adsense keeps on making changes.

September 1, 2009 at 11:37 PM Adebajo Opeoluwa said...

hello

i really don't understand how to go about this ...i want to place a text link at the end of each post i make...and i don't understand what you mean by this "and" pls i need more clarification on this...my blogsite....is "www.diabetic-coma.blogspot.com"...moreso google is showing irrelivant ads on ma site...is there anyway you can help me on this...

Post a Comment