How To Solve Adsense Async Error During Ad Placement HTML Section

Blogger is a simple and easy platform that allows users to publish their passion in their own way, which is been integrated with tool that serve it users with a better experience.

Many of we bloggers who are trying to paste AdSense responsive ads code in their blogger theme HTML section and end up getting error.

Async Error occurs whenever u implant AdSense Ad units code inside blogger theme, which blogger platform does not support it. This code won't save even though you manage to do so because the ads won't display. So due to this error many of we bloggers do parse the absence code by converting the XML code to TXT.
So without parsing an as code you can easily put your address code inside your blogger theme without getting the ASYNC error.

HOW TO


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Link Ads Responsive -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6067504477802221"
     data-ad-slot="4549534310"
     data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

This above code is an example of Google Adsense responsive ads (link ads) which gives you error when trying to place it in your theme HTML section.

All you have to do is to replace the async with async='async'

<script async='async' src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Link Ads Responsive -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6067504477802221"
     data-ad-slot="4549534310"
     data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Now, you can save your HTML blogger theme and you will no longer get any error.

No comments

Powered by Blogger.