Adsense ad code converts yourself, without any risk

You can convert Adsense ad code yourself. It is a method to encode HTML and JavaScript advertisement codes into strict XHTML entities.

Hi, Today we talk about Adsense ad code and why we convert it to XHTML. You can convert ad code yourself. It is a simple, safe and easy method to encode HTML and JavaScript advertisement codes into strict XHTML entities. If you directly use ad codes in blogger template, it will not display ads on your blog. So it’s necessary for us to convert it in XHTML.

So here is the safest and easiest method to  ad code convert into XHTML entities and after converting ad code, you can show your Adsense ad anywhere on the blogger template. You can use this ad code convert method to convert any kind of JavaScript ads codes, It can convert ad codes of Adsense, Chitika, Adbrite or any other HTML and JavaScript code. But first you should take a backup of your blogger template before making any changes.

Adsense-ad-code

Must Read: Google Keep is small but most useful App

Adsense code seems like this:

<script type=”text/javascript”><!–xxxxxxx_ad_client = “ca-pub-xxxxxxxxxxxxxxxx”;/* ad1 */google_ad_slot = “xxxxxxxxxxx”;google_ad_width = 300;google_ad_height = 250;//–></script><script type=”text/javascript”src=”http://xxxxxxxxxxxxxxx/xxxxxxxxxxxxxx/show_ads.js”></script>

But this code is not working in a web or HTML template. So we required to convert this ad code in XHTML. It is very easy and simple and we don’t need any online site to convert this code. have a look how to convert ad code.

This code have lots of symbol like <, “, > etc. XHTML require to change it. So let’s go….

< =  &lt;

> =  &gt;

” =  &quot;

‘ = &#039;

& =  &amp;

After change code look like this:

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!–xxxxxxx_ad_client = &quot;ca-pub-xxxxxxxxxxxxxxxx&quot;;/* ad1 */google_ad_slot = &quot;xxxxxxxxxxx&quot;;google_ad_width = 300;google_ad_height = 250;//–&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;src=&quot;http://xxxxxxxxxxxxxxx/xxxxxxxxxxxxxx/show_ads.js&quot;&gt;&lt;/script&gt;

Note: – This method doesn’t break AdSense program policies because you are not modifying the ad code in any way. you can just convert your ad code into XHTML.

2 Comments

Leave a Reply

Thanks to leave a comment. Please note that all comments are moderated according to our comment policy and your email address will NOT be published. Please Do NOT use keywords in the name field. Lets have a meaningful conversation.