How to Insert Google Ads in Posts? ~ Earn Money Rocket

Friday, October 5, 2007

How to Insert Google Ads in Posts?

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 ’&gt;’ and ’"’ with ’&quot;’. For example:

Quote:

<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
Quote:

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-XXXXXXXXXXXXXXX&quot;;
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = &quot;336x280_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel = &quot;&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;000000&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;000000&quot;;
//--&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;

You can use your text editor to replace all the HTML, but there is an easier free method to parse AdSense Code at BlogCrowds,it takes care of everything for you.and here is the link:
http://www.blogcrowds.com/resources/parse_html.php

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:

ad3



<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

ad2



<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:

Anonymous said...

tramadol online pharmacy tramadol 50 mg whyte pill - vicodin vs ultram tramadol