Blogger Ad Code Converter Tool

Most of the ad code that you paste directly into blogger template will not work. Maybe there will be no error message when you save the template code changes, but when your blog page loaded in the browser, there are no ads appear.

What's really going on here? Adsense, Chitika or Amazon ad code is a javascript code in which there are some characters that cannot be used directly in the blogger template. You must change these characters into XHTML entities before being put into the template (Template > edit HTML). You can use the tool below to convert ad code automatically. Paste the ad code and then press the "Convert Ad Code" button:




Adsense Ad code example:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-3957519937008089";
/* Komku-Medium-Top */
google_ad_slot = "6353635008";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Will be converted into the following code in order to work correctly:

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-3957519937008089&quot;;
/* Komku-Medium-Top */
google_ad_slot = &quot;6353635008&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&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;


Adsense asynchronous (BETA) code example :

<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-3957519937008089"
     data-ad-slot="6353635008"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({}
);</script>


Will be converted into the following code in order to work correctly:

&lt;script async src=&quot;http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:300px;height:250px&quot;
     data-ad-client=&quot;ca-pub-3957519937008089&quot;
     data-ad-slot=&quot;6353635008&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;


You don’t need to worry about breaking the AdSense program policies. Once you implement the ad code that has been converted, open your blog and then select the option "view source", you can see that the eris no change at all and the code remains the same as the original.

Note: Use ad converter above when you want to put ad directly into the template (Dashboard > Template > Edit HTML). If you want to put an ad on your sidebar (Dashboard > Layout > Add Gadget > "HTML/JavaScript") you don't need to convert your ad code into xhtml entities.