This error occurs due to the xml format of the layout so you have to convert the code in the xml format. This task can be accomplished easily by putting your ad code in the following link:
Blog Ad Code Converter
Ad Code converter
This is a good tool provided by eblogtemplates, it converts the ad code into the xml code( ready to put into the template) just by a press of a button.
So Try it!