Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents

There is trick to add Google AdSense and other advertising network such as AdBrite ad unit right beside and inside within Blogger post content, so that the ad block will appear wrapped and floated inline to the top left or top right next to the blog text. If you do not like this layout and dislike the prominent location the ads are displayed, there are other places within blog post to put the ad code.

The guide below provides tips and tricks on where should the parsed HTML ad code (after replacing several special characters with HTML code) be pasted and inserted in the Blogger XML-based template. In essence, the steps are exactly the same when positioning the ad next to and within post content, except that the text string to search (where to paste the ad code) is different.

To recap, go to Blogger Template tab for the blog you want to change, then click on Edit HTML. Remember to tick Expand Widget Templates check box, and perform the backup.

Wrap Around Next to the Post and Float to Left or Right

Blogger AdSense Float LeftBlogger AdSense Float Right

Refer to this guide.

After Post Title Before Post Contents

Blogger AdSense at Top

The ad banner will appear below post title but above and before the start of blog content. It’s actually exactly the same with tip above to wrap AdSense around the post, except that now the ad unit does not float but instead been place at the center without wrapping, and thus pushing content below it.

Search for the line of:

<p><data:post.body/></p>

Paste the parsed Google AdSense ad code inside <center><div> and </div></center> right before the above line so that it looks like below after change:

<div class=’post-header-line-1′/>

<div class=’post-body entry-content’>
<center><div>[parsed Google AdSense ad code]</div></center>
<p><data:post.body/></p>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>

After Post Content Before Footer Credits

Blogger AdSense at Bottom

The Google AdSense ad unit or other display ads banner will appear at the bottom of the blog post, after the end of content and just before the ending credits, within inside the post.

Search for:

<div class=’post-footer’>

Paste the parsed Google AdSense ad code inside <div> and </div> right before the above line so that it looks like below after change:

<div class=’post-body entry-content’>
<p><data:post.body/></p>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>
<div>[parsed Google AdSense ad code]</div>
<div class=’post-footer’>

To center the ads unit, add the wrapper of <center> and </center>.

After Footer Credits

Unlike the above where the ad unit appear before the credit right after post content, this time the ad unit will appear after the credit for the post is displayed. The easiest way to achieve the task is using built-in feature of “Show Ads Between Posts” in Blogger. Turn off and enable the feature will display ads between posts when view in home, index or category pages, and also at the bottom most part when view in single individual post page view.

If you plan to use non-AdSense ads or want to add in custom channels, you have to manually edit the template HTML to add in the ad code. In this case, search for:

<p class=’post-footer-line post-footer-line-3′/>

Paste the parsed Google AdSense ad code inside <div> and </div> right after the above line so that it looks like below after change:

<p class=’post-footer-line post-footer-line-3′/>
<div>[parsed Google AdSense ad code]</div>
</div>
</div>
</b:includable>

To center the ads unit, add the wrapper of <center> and </center>.

Between Posts

After it’s pretty much similar to the above where ads appear after post footer. So just follow tips above.

31 Responses to “Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents”

Pages: [2] 1 » Show All

  1. Kaushik
    November 30th, 2009 14:10
    31

    How to insert adsense in the middle of a post? Like if there are 4 paragraphs, then adsense comes like — 2 paragraphs / adsense / last 2 paragraphs? I’ve seen some bloggers doing it already. How?

  2. Luffy_12
    November 22nd, 2009 21:53
    30

    ***Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Element type “script” must be followed by either attribute specifications, “>” or “/>”. ***

  3. Luffy_12
    November 22nd, 2009 21:34
    29

    WTF thank you very much buddy!

  4. dom
    September 10th, 2009 04:15
    28

    Hi, I tried pasting the code using the “After Post Title Before Post Contents” technique for my Adbrite codes. I saved and view the blog to confirm what I have done. It appears that there are the sentence “Your ad here” by Adbrite after every post. The code has just been activated so I cannot see any ads yet. Here is my question.

    1. Is this normal?
    2. How can I display only 1 ads at the top post but not for every posts?

    Thanks.

  5. chenJakie
    August 29th, 2009 03:32
    27

    I want to add adsense inside post just like this:

    —————————————————
    —————————————————
    —————————————————
    google adsense google adsense google adsense

    ————————————————–
    ————————————————–
    —————————————————

    How can i do ? thank u.

  6. Ainttutorial
    August 24th, 2009 14:15
    26

    Nice trick.. Thank’s

Pages: [2] 1 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

blogger adsense inside post - place adsense bottom blogger post - adsense inside blogger post - Place adsence inside my post - ads inside post - how to put adsense in footer blogger - blogger center ads between posts - how to place ads between posts in blogger - how to place ad after the header in blogger - place an ad - how to place adsense within post - how to place adsense inside post - placing adsense in blogger posts - how to put adsense under posts blogger - how to put adsense in blogger post - place adsense inside blogger post - placing the ad within the content adsense - ads above and under post on blogger - blogger put adsense inside post - how to put ads inside posts with blogger - adsense - adsense inside post - put adsense on top of blog POST blogger - adsense in blogger footer - embed adsense after title post, left side - how to add adsense ad unit - how to center a ad in blogger - how to put adsense at top of blogger - i want to put 2 adsense ads in blogger post - inserting adsense ads within blogger post - position adsence ad - ad inside post - blogger ads in post body - blogger ad inline before the first post - How to add Adsense Advertising Units between Posts in Blogger html? - how to add adsense to blog post title - how doi put other ads between posts - how to place adsense in blogspot blog - how to [;ace ads inside blogger posts - http://swagbuckstricks.blogspot.com - ad ads in tiitle end in blogger - add adsense blogger post - adsense after first post +blogger - how to add google ads inside the post of blogger - how to embed adsense within the post left side - i want google ads to be on left side of my blogspot posting - insert adsense to post parse - put adsense in blogger post - blog place ad - center adsense parsed ad -