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.
Resultantly, in the code and your Google Adsense code will be parsed.
I only removed < and added < and removed > and added > and removed " and added " 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.
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.
How to Convert Adsense code to xml
All you need to do is to replace:- < with <
- > with >
- " with "
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"><!--Then the parsed form of this code will be
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>
<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>
I only removed < and added < and removed > and added > and removed " and added " 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.
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.
No comments:
Post a Comment