Inserting Adsense code into your post body helps you to increase your benefits from google Adsense and have higher (Click through rate).
Parse Your AdSense Code
Parse means making the Adsense code standarded XML and that is made by replacing all the html character such as ’<’ with ’>’ and ’"’ with ’"’. For example:
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
would be
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
You can use your text editor to replace all the HTML, but there is an easier free method to parse AdSense Code here, it takes care of everything for you ;) (Yeah, I made this tool myself)
Now with the code you can paste it anywhere in your HTML code with no error at all.
Where to paste the parsed HTML code?
Expand your blog’s widget first and find the code below,then add your parsed code and save the template :
1)Next To The Post :
<div style="float:left;"> <!--parsed Adsense code--> </div>
<div class=’post-body’> <p><data:post.body/></p> <div style=’clear: both;’/> <!-- clear for photos floats --> </div> |
2)After Post Before Credits:
<div class=’post-body’> <p><data:post.body/></p> <div style=’clear: both;’/> <!-- clear for photos floats --> </div><div><!--parsed Adsense code--></div><div class=’post-footer’> <p class=’post-footer-line post-footer-line-1’> <span class=’post-author’> <b:if cond=’data:top.showAuthor’> <data:top.authorLabel/> <data:post.author/> |
3)After Credits
<p class=’post-footer-line post-footer-line-3’/><div><!--parsed Adsense code--></div> </div> </div> </b:includable> </b:widget> </b:section> |
May this method violate Google Adsense TOS ?
Absolutely no,Minor edits on Google Adsense Code for Blogger Beta/XML are allowed as long as the resulting Adsense Code generated by Blogger is exactly the same as given from Google Adsense.
1 comment:
thanks a lot for the article sir, finally I am able to show adsense inside the post. Thanks a lot for the article one again.
Post a Comment