
Are you facing async error message issue while saving Google Adsense code? This error is so common to those using Google Adsense because when placing an Adsense code to your blog HTML, your generated Adsense code will surely give an error, if you place it raw.
In fact, all bloggers must have faced this issue but some of them think the solution is by parsing the Adsense code, NO! It can’t be resolved in that way, you only have to edit or modify the Adsense generated asynchronous code otherwise, you will receive an error message saying; “Error Parsing XML Code Attribute name “async” associated with an element type “script” must be followed by the ‘ = ‘ character.“.
Now, the solution is here to fix the async error message while integrating Adsense code in your template. You just have to modify the JavaScripts Adsense code. As shown below.
Normal Adsense code;
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “ca-pub-5780971656268987”,
enable_page_level_ads: true
});
Modified Adsense code;
<script async=”async” src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “ca-pub-5780971656268987”,
enable_page_level_ads: true
});
This is how I modified it. Just add =”async” to the normal adsense code. Then, paste the modified Adsense code into your blogger template and Save.
Is it helpful? Do you encounter any problems or issues while trying to fix Async error? Kindly ask more questions and if it works for you, kindly share your experience!
even if am not into blogs yet, am sure dis article will b useful in d future….. NYC post
nice update ..
for the bloggers nc update
Nice 1,thanks for the update….Commenting from SAFAXNET BLOG
Nice Article.
not bad
though I don't know much about blogging
Useful post for the bloggers
Nice one
Nice update
Nice one Prex. Useful for bloggers.
Thank you for posting the great info.I was looking for something like this.I found it quiet interesting, hopefully you will keep posting such blogs..Keep sharing.search digital marketing openings in hyderabad for experienced.
Your guild are always nice….as you know diff person so with way of doing thing! if am to work with that code heres how i will do it
thats how i will work with that code. but your method is ok bro…nice guild!
Thank you!
i have got my error solved with your step by step guidance. apkglobe
Tanx, ur article really helped me. U re great. I'm very very greatful.I can't tank u enuogh.
Can I use async='async' instead of async=”async”??
Use any one
Nice post,it's very informative.i found the best information.I updated my knowledge with this blog.it can help me to crack GIS jobs in Hyderabad.