How to fix errors not showing Google Adsense ads when switching to HTTPS
Hallo Buddy Blogger, recently there were a lot of complaints about people who use AdSense ads suddenly not showing ads when their blog site switched back to HTTPS.
Well, to fix an issue that sometimes ads don't serve on your blog when new posts are published, you need to do the following:
1. Use CTRL + F to search for the following script in the Edit HTML menu.
<script async src = "// pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"> </script>
And delete them all.
2. Enter the code below before the </body> tag
<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 (iklan, sc); }) (); //]]> </script>
Note: If you're still using your old robots. txt file, replace it with the following code
User-agent: * Disallow: / search Sitemap: https://trickjadu.xyz
/sitemap.xml
Replace https://Trickjadu.xyz with your blog link and wait for the ad to appear again. Good luck.
Thus the article from me on how to fix the error not showing Google Adsense when switching to HTTPS, hopefully the above article is beneficial for the blogger mate all. Thank you and good luck
Rate This Article
Thanks for reading: How to fix errors not showing Google Adsense ads when switching to HTTPS, Sorry, my English is bad:)