How to fix errors not showing Google Adsense ads when switching to HTTPS

How to fix errors not showing Google Adsense ads when switching to HTTPS

How to fix errors not showing Google Adsense ads when switching to HTTPS

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:)

Getting Info...

Post a Comment

Don’t spam comment thanks
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.