Friday, October 9, 2009

Adding adsense inside your post section

adinsidepostFrom this tutorial, you will be able to add any type of adsense service you are working with to the top or bottom section inside of your posts. Placing too many ads on the homepage of your blog can actually drive your visitors away because of the impression that your blog gives them on first sight. Working with adsense is a great way to make a profitable income if you understand how to generate clicks and place ads where they are likely to be viewed and clicked on. Placing ads inside postings is one of the most effective ways to pull visitors interest on the relevant topics they are truly interested in.

*Before attempting any tutorial, please make sure you back-up your current existing template in case it doesn’t turn out as expected.

Assuming that you are already working with an adsense service and have created your desired ad to be placed inside your postings, lets get started.

Steps to follow:

1. Log into your adsense account and copy/paste the code to the “Paste Ad Code to Convert Here:” at this website and select “Convert Ad Code”: http://www.eblogtemplates.com/blogger-ad-code-converter/

2. Once your adsense section code is converted, Log into your Blogger Dashboard > Layout > Edit HTML (select “Expand Widget Templates”)

3. If you want your ad to appear right under the post title, search for the following section code:

<div class='post-header-line-1'/>

4. Once you’ve located this code, copy/paste your converted ad code right below it, for example:
<div class='post-header-line-1'/> 
<div class='post-body'>

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<hr align='center' color='#dddddd' width='100%'/>
<center>
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-XXXXXXXXXXXXXXX&quot;;
google_ad_host = &quot;pub-XXXXXXXXXXXXXXXX&quot;;
/* 468x60, created 7/17/09 */
google_ad_slot = &quot;XXXXXXXXXX&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
</center>
<hr align='center' color='#dddddd' width='100%'/>
</b:if>

<div style='clear: both;'/> <!-- clear for photos floats -->
</div>

Note:

The section code labeled in red is the IF tags, used to tell Blogger that you only want this displayed inside postings(when they actually read the post individually)

The section code labeled in blue is a horizontal line, you can remove this if you want, but it’s to separate your ads from your posts.

The section code in orange is self explanatory, to center your ad.

5. If you wish to have your ad posted right under your postings, then search for the following section code below and add your converted ad code right below it:
<div class='post-footer'>
<p class='post-footer-line post-footer-line-1'>

6. You can preview before you save, but in order for you to be able to see your ad position in preview mode, you should remove the IF tags before you preview, if that’s the position you want your ad in, simply re-add the IF tags and select Save Template.

*Tutorial completed

No comments:

Post a Comment