Tuesday, July 19, 2011

Adding 336x280 Adsense Ad Below Blogspot Post Title

Many bloggers suggest that the best place and format for an Adsense ad is to use a 336x280 ad box right below the post title on each post. Suppose you want your 336x280 Adsense ad to appear on your right hand side with your blog text wrapping around it, here is how you can do it:

First, get your Adsense code from your Adsense account.

And then sign in to your Blogspot account, click “layout”, click “edit html”, check “expand widget templates”, scroll all the way down to somewhere in the middle, right after the following:

<div class='post-header'>
<div class='post-header-line-1'/>
</div>
<div class='post-body entry-content' expr:id='&quot;post-body-&quot; + data:post.id'>

paste the following:

<div style='float:right; margin-left:10px;'>

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-XXXXXXXXXX&quot;;
/* 336x280, created ZZ/ZZ/ZZ */
google_ad_slot = &quot;YYYYYYYYYY&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&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;

</div>

Remember to replace XXXXXXXXXX, YYYYYYYYYY, ZZ/ZZ/ZZ with your own Adsense ID, ad_slot ID, and date.

 

No comments:

Post a Comment