How To Add Adsense Ads Inside Every Posts Of Blogger
Thursday, June 09, 2011
Posted by
Priyangshu
Adsense is the leader of PPC advertising and the only revenue source of some blogs . If you are using Blogger as your platform , then you may want to insert adsense ads inside your blog posts . So in order to do this , first you have to encode your adsense ad codes and then add them to your blog's html .
How To Encode Your Adsense Ad Code :- There are two ways to encode your adsense codes . You can encode them by using some free tools which can be founded on the net , just search for tools on google . And you can also do it by yourself but i advise you to use encoding tools . Anyway , if you want to do it by yourself then replace the following characters of your adsense code :-
Replace < by <
Replace > by >
And Replace " by "
After replacing all these characters , your adsense code is ready to be inserted inside posts .
How To Insert The Ads Inside All The Posts ( Only For Blogspot ) :- After you encode your codes , the next step is to place them in your blog's posts . First login to your blogger dashboard and go to the edit html tab under design tab [ Dashboard->Design->Edit Html ] . Then expand your template widgets , after that search for the code <data:post.body/> . And if you want your ads to be appeared below the post title then paste your encoded code before <data:post.body/> and if you want to place your adsense ads at the end of the post then paste your encoded adsense code after <data:post.body/> .
And if you want to your ads to be appered only on the post page and not on the homepage then if you have to modify some html . In order to do so just paste the following code before your encoded code :-
<div class='post-body entry-content'>
<b:if cond='data:blog.pageType == "item"'>
After that place your whole code after or before <data:post.body/> . And if you want to position them to float on left or right , then paste the following code after b:if cond='data:blog.pageType == "item"'> :-
<div style='padding: 4px; float: left;'>
And at last paste the following codes after your encoded code :-
</div>
</b:if>
If you want to place your ads on the right of the page then replace left by right in the above code . To position your ads from the sides , just modify the padding of the above code .
Afterall , your code will be look like this :-
<div class='post-body entry-content'>
<b:if cond='data:blog.pageType == "item"'>
<div style='padding: 4px; float: left;'>
<script type="text/javascript"><!--
google_ad_client = "pub-0206894356319149";
google_ad_host = "pub-1556223355139109";
/* Inside Post */
google_ad_slot = "0131500273";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</b:if>
Just paste these codes before or after <data:post.body/> so as to be appeared inside posts .
Tags: Ads Inside Posts, Adsense, Blogspot Tutorials, HTML
![](http://img2.blogblog.com/img/icon18_edit_allbkg.gif)
Subscribe to:
Post Comments (Atom)
Share your views...
0 Respones to "How To Add Adsense Ads Inside Every Posts Of Blogger"
Post a Comment