Blogger

How To Fix Google Adsense Not Appearing After Moving To HTTPS

There are so many request and complain from those who were using their Google ads on http blogs which suddenly disappears after porting to https. Actually it can be seen whenever fresh articles are published and it simply means that this new articles are not accessible by Google bots. And to do this, make sure you enable robots.txt on your blogs.

Now to overcome the issue of your ads not showing sometimes in newly published posts on blogspot, you need to do the following:
• Navigate to your blogger dashboard and select themes >>> Edit HTML

• Now search for this script below by using your Ctrl + F buttons, then remove them totally

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

• Now search for your closing body tag </body> and paste this code right before or after it

<script type=’text/javascript’>//<![CDATA[(function() { var ad = document.createElement(‘script’); ad.type = ‘text/javascript’; ad.async = true; ad.src = ‘https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js’; var sc = document.getElementsByTagName(‘script’)[0]; sc.parentNode.insertBefore(ad, sc); })();//]]></script>

• Finally save your template

Note: Please if you are using the old robot.txt settings, then you need to replace it with this:

User-agent: *Disallow: /searchAllow: /Sitemap: https://bloggingseries.com/sitemap.xml

(Change bloggingseries.com to your current url)

Now give your blogs time to update the changes we made. Your ads will start showing as it were before.

About the author

Alvin Uchenna

A Passionate Blogger With A Keen Eye In Helping People To Develop, Design And Monetize Their Blogs.

2 Comments

Leave a Comment

%d bloggers like this: