After applying for the AdSense program when we try to install the code in our Blogger blogs we may face in a error which known as XML parsing. Bellow is the possible common error notification.
[Error parsing XML, line 5, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character.]
Let's shortly explain it bellow:
The error notification of above indicates blogger asking us to place a equal sign for the attribute "async" which is associated with a elements type "script".
There are some quiet difference comments on using attribute async & value for it.
Google has used two kinds of script till now for AdSense. Before it is Synchronous and recently they have upgraded their ads unit with Asynchronous. So what are these two kinds mean?
Shortly: Synchronous AdSense ads was executing a script synchronously with a waiting time to move to another task before completing the first task. So it used to call first to the ads slot than call to the java Script. So it means that without completing the first ads on your site, another ads couldn't be called and visible to show.
By the Asynchronous, executing something randomly which means it calls to all of the slots of your site because it load the java script just once through your browser cache and happen a faster load of all ads by a smooth single calls.
Anyway, let's we do finish the problem for installing the code in your blogs.
See the exact code bellow:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-XXXXXXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
From above code, we need to make it little change just to add an equal sign of async.
We can do it in different way. But the fact depends on website page speed.
Change: <script async to <script async="async">
Or,
<script async to <script async="async">."
So finally the full code will be like following:
<script async="async"> src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-XXXXXXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
So here we changed: <script async to <script async="async">
Now you can both of the 2 option to change it.
Edit your c-pu id instead of-xxxxxxxxxxxxxxxxxxxx. then put it to your blogs <head> section. Save the Template and it should be fine.
[Error parsing XML, line 5, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character.]
Let's shortly explain it bellow:
The error notification of above indicates blogger asking us to place a equal sign for the attribute "async" which is associated with a elements type "script".
There are some quiet difference comments on using attribute async & value for it.
Google has used two kinds of script till now for AdSense. Before it is Synchronous and recently they have upgraded their ads unit with Asynchronous. So what are these two kinds mean?
Shortly: Synchronous AdSense ads was executing a script synchronously with a waiting time to move to another task before completing the first task. So it used to call first to the ads slot than call to the java Script. So it means that without completing the first ads on your site, another ads couldn't be called and visible to show.
By the Asynchronous, executing something randomly which means it calls to all of the slots of your site because it load the java script just once through your browser cache and happen a faster load of all ads by a smooth single calls.
Anyway, let's we do finish the problem for installing the code in your blogs.
See the exact code bellow:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-XXXXXXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
From above code, we need to make it little change just to add an equal sign of async.
We can do it in different way. But the fact depends on website page speed.
Change: <script async to <script async="async">
Or,
<script async to <script async="async">."
So finally the full code will be like following:
<script async="async"> src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-XXXXXXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
So here we changed: <script async to <script async="async">
Now you can both of the 2 option to change it.
Edit your c-pu id instead of-xxxxxxxxxxxxxxxxxxxx. then put it to your blogs <head> section. Save the Template and it should be fine.
No comments:
Post a Comment