Thursday, September 24, 2020
Home Blogging Tips & Tweaks How to Add Google Adsense Verification Code to Blogger Without Errors

How to Add 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 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.

Note: PLEASE DO NOT COPY THE VERIFICATION CODE AS PROVIDED ABOVE TO USE IN VERYING YOUR BLOGGER WEBSITE. USE THE ONE PROVIDED WHEN YOU APPLIED FOR AN ADSENSE ACCOUNT AND THEN MAKE THE CHANGES AS I HAVE SPECIFIED.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

List of All JavaScript Arithmetic Operators With Examples

JavaScript offers several operators to help us work with numbers. All these operators are binary operators, which means they operate on two operands. The operands...

How to Find a Website’s RSS Feed’s URL

Having access to the RSS feed of a website gives you the opportunity to stay up-to-date on everything that website publishes. Whether that’s a...

Laravel: String data, right truncated: 1406 Data too long for column (SOLVED)

I was working on a project today when i ran into the error message "String data, right truncated: 1406 Data too long for column...

How to Enable or Disable Chrome’s Autofill on Android Devices

Storing your login details and other information in Chrome and/or your Google Account isn’t as secure as using an encrypted password manager, but it’s...

Recent Comments