Monday, April 16, 2012

how to put adsense ads inside blogger posts

Leave a Comment

Ads should be placed where people see them. To follow this principle and have more exposure and
more number of clicks, it is recommended to have Adsense ad shown just below the Post title or at the beginning of Post content.In Blogger, you can insert Advertisements in sidebar or Footer or wherever Gadget positions are allowed in Template. However, adding ad inside Post is not as direct as you may feel. Just a small trick and you could start showing Adsense Ad units on single post view inside post.
For that You will have to follow the steps below :
Step 1: Sign in to your adsense account and get the adense code.
Now, you have to parse the code using online parser. Paste your adsense code here and you will get the parsed code.
Step 2 : Sign in to your blogger account and from Template panel go to Edit-HTML >>Expand HTML.
Find  <div class=’post-body entry-content’> and just below that line, put your adsense code in the following format.
<b:if cond='data:blog.pageType == "item"'>
 <center><div>
Your Parsed Adsense code here
</div></center>
 </b:if>
Following above steps will insert ad inside post just below title but in case, you also want to show Ads at the end of post then find
<data:post.body/> in the template HTML and add the above code after that line.
RUR6K7XBX58C

0 comments:

Post a Comment