Digital Marketing Max

Articles on digital marketing techniques, tools, tips, new feature announcements etc

How to solve Google Adsense Async syntax error?

Whenever you are trying to install google adsense code in your blog, you will get the following error message

Error parsing XML, line 3945, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character

Adsense code generated by Adsense

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

Google Adsense sytax error in blogger

But the above code is not right code.

Find the Right code below  [ You have to add the following syntax (='async') after async ]

<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

Once you submit the above code. There won't be any error message and your code is submitted successfully
Google Adsense sytax error in blogger

No comments:

Post a Comment