Adding Google Adsense Verification Code to Blogger Without Errors

Have you recently applied to get your Blogger blog monetized by the popular Google Adsense but finding it difficult adding the verification code to your Blogger blog <head> section? By simply copying the verification code as provided by Google and pasting below <head> section of your Blogger template code will give you an error informing you that async requires an = sign. In order to correct this and make sure the verification code is successfully added to the <head> section of your Blogger template code, do the following;

  • Copy the Google Adsense code as provided when you applied to use Adsense to monetize your Blogger powered blog and paste in notepad or any other HTML editing program. The code will look something like the one displayed below.

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

<script>

(adsbygoogle = window.adsbygoogle || []).push({

google_ad_client: “ca-pub-0123456789”,

enable_page_level_ads: true

});

</script>

  • Now replace the async as shown in RED text above with async=’async’ so that your verification code should now look like the one shown below. Notice the change from async to async=’async’ in the below code.

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

<script>

(adsbygoogle = window.adsbygoogle || []).push({

google_ad_client: “ca-pub-0123456789”,

enable_page_level_ads: true

});

</script>

  • Copy the new adjusted verification code to the <head> section of your Blogger template code and then finally Save it. With that done, you will notice that the error message will no longer appear just as it did when you tried to just use it as was provided by Google.

What is ads.txt and How to Add it to Blogger?


Note: Please do not copy the verification code as provided above to use in verifying your Blogger blog. Use the one provided when you applied for an Adsense account.

Leave a Reply

Your email address will not be published. Required fields are marked *