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='"post-body-" + data:post.id'>
paste the following:
<div style='float:right; margin-left:10px;'>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXX";
/* 336x280, created ZZ/ZZ/ZZ */
google_ad_slot = "YYYYYYYYYY";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
Remember to replace XXXXXXXXXX, YYYYYYYYYY, ZZ/ZZ/ZZ with your own Adsense ID, ad_slot ID, and date.
No comments:
Post a Comment