Friday, September 5, 2014

Ad Code Converter

0 Comments
Ad code converter toolIf you facing errors or problems while embedding Ad Codes from Google Adsense, Adbrite, Chitika, Bidvertiser, etc. in Blogger template, then you are at right place to solve this problem.

The solution of this problem is to covert ad code into suitable correct format that is accepted by XHTML Blogger template.

The textbox tool given below automatically converts JavaScript ad code into the correct format so that you can embed it directly into xml Blogger template. It’s works perfectly for AdSense, AdBrite, Chitika or any other JavaScript ad code you may have.

Instructions for using Ad Code Converter Tool:

  • Paste your Adsense code or any other Ad Code in box give below and then press "Convert" button.
***the converted code will appear in this same box here, just after clicking "Convert" button***
  • Click "Select All" to select Converted Code.
  • Press "Ctrl+C" to copy to clipboard.
  • Embed code into blogger template.

Ad Code Converter Tool:




             

Note: 

The above tool is helpful for all JavaScript codes (Ads, Widget Codes, etc.) those are to be directly embedded into Blogger Template i.e. via Dashboard > Template > Edit HTML.

For example, the following JavaScript code for Google plus button:

<script src="https://apis.google.com/js/platform.js" async defer></script>

when directly embedded into template gives following error while saving template:

“Error parsing XML, line 1107, column 60: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character.”

OR,

The following JavaScript ad code for Facebook like button:

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=275790029225681&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

when directly embedded into template gives following error while saving template:

“Error parsing XML, line 1114, column 62: The reference to entity "appId" must end with the ';' delimiter.”

All these types of errors can be resolved by converting these codes with the Ad Code Converter Tool into correct format.

If you want to add Ads code into sidebar or bottom bar via Dashboard > Layout > Add Gadget > "HTML/JavaScript", then there is no need of  conversion of ad code. In this case, the ad code can be added directly.
Please share...
Subscribe us...

Delivered by FeedBurner

Random Posts

No comments:

Post a Comment