Your Library for the latest IT Security News, Alerts, Threats and Tips and Android Games

Thursday 18 October 2012

add Adsense code inside blogger post


How do I add Adsense code inside blogger post, below the Title?

All you have to do is create an ad unit on Google Adsense website, get the code and add it to the a location in your blog template which I'm going to show you soon.

In blogger, by default, we can only display ads on top of our posts, under the posts and on the side bars. However, we often see some blogs with Adsense ads place inside the post body.

In the first place, why place an Ad below your post title?
Below the post title is the position with the highest CTR (click-through rate). In other words the ad placed there will have the highest number of clicks and hence earn the most money. That's most probably your reason for blogging. Enough of that. Let's get started.

Get the Ad code from your adsense account, preferable either a 300x250 Medium Rectangle or 336x250 Large Rectangle ad unit.
Parse the ad code in a parser to escape special characters in the code. The ad won’t appear if you use the original unescaped ad code.One of my favorite javascript/adsense parsers can be found at Blog crowds.
Copy the parsed code.

Now follow these steps:

Login your Blogger Account
Click on Design  >> Edit HTML
Check the  “Expand Widget Templates” box.
(Important!)Download your full Template in case you screw up somewhere.
Then find the following code(Ctrl+F)

   <data:post.body/>

     Paste your parsed adsense code on top of it.
     And you'll have:
 
      Your ad code
   <data:post.body/>

     That's it! It's that easy.

Oh no, one more thing, your ads will display below post titles on all pages(home page and individual post pages). If you wish for it to be applied just on post pages, add the following lines of code:

  <b:if cond='data:blog.pageType == &quot;item&quot;'>
   Place your ad code here
  </b:if>
  <data:post.body/>

Thanks For Reading

Tags:

0 Responses to “add Adsense code inside blogger post”

Post a Comment

Pls Feel Free To ask Any Tips Regarding Your Help.And Pls Like Us.Thanks For Visiting My Site.If U like It Then Tell Me.

Get Our App

Subscribe

Please Enter Your Email Id

© 2013 Blogger World. All rights reserved.
Designed by Think Exchanger