Search Blog

Showing posts with label Parse Code. Show all posts
Showing posts with label Parse Code. Show all posts

How to Convert Adsense code to xml - Parse Adsense Code

How to Convert Adsense code to xml? Its easy and simple, you just need to Parse Adsense Code. Parsed Google Adsense ad code is normally used when someone directly needs to put that ad code in the HTML of a blog or website, or in the source code of a document. You can do this by following these simple steps.

How to Convert Adsense code to xml 

All you need to do is to replace:
  • < with &lt;
  • > with &gt;
  • " with &quot;

Resultantly, in the code and your Google Adsense code will be parsed.

Example of Parse Adsense Code

For example, if your Google Adsense code looks like:
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxx";
/* 300x250*/
google_ad_slot = "yyyyyyyyyyyyyy";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Then the parsed form of this code will be

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-xxxxxxxxxxxxxx&quot;;
/* 300x250*/
google_ad_slot = &quot;yyyyyyyyyyyyyy&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;

I only removed < and added &lt; and removed > and added &gt; and removed " and added &quot; respectively every time they occurred in the code. You can use the simple tool on notepad called "Replace". Simply press Ctrl+H and enter the term you want to find and replace.

How to Convert Adsense code to xml

Its simple and effective. If you don't want to do this work your self. Here's a list of all the websites that can help you parsing ad code.

Don't forget to follow the blog AKBlogs on facebook & Twitter.
Share:

A list of websites to directly parse your Google Adsense code:

Here's a list of websites to directly parse your Google Adsense code. These are fine website to parse your Google Adsense Ad code. Some one would probably need to parse an adsense ad code when he would need to place that code in the source code of a blog or website's HTML code.

A list of websites to directly parse your Google Adsense code


Parse your Google Adsense code


Like if had to place an adsense ad code in the HTML template of a blogger blog, I will have to parse my adsense ad code first, otherwise the code will not work.

In order to use these website, simply paste the Google Adsense ad code in the code entering text box and hit PARSE. A new page will open with two text boxes, the one on top of the other will display your parsed adsense ad code which was input by you in the previous page & the text box in the bottom will allow you to input more adsense codes here.

Remember that this HTML Parser was created so that the Google Adsense ad codes could be added into the body HTML of Blogger Templates. However, if any parse code you added into the Blogger Template gives an error, more likely you should add the unparsed adsense ad code in the HTML instead.

Related: Best Ad Networks 2018

Don't forget to follow my blog AKBlogs on facebook at Akblogspk.
Share: