Google implementing new features as well as improvements in its product. Google has announced that the AdSense code now support HTTPS sites. So that means you can use AdSense on your HTTPS site like e-commerce site as well as social media sites. Due to security reason these sites are using HTTPS page to secure their user's sensitive data. So start using AdSense if you have HTTPS sites.
HOW TO USE ADSENSE ON HTTPS SITES?
You might think how to use AdSense on your HTTPS site after Google enable it for these sites? Well it is so easy. You just have to login to your AdSense account if you don't have account create it first and then follow the instruction given below.
- Go to the My Ads tab.
- Click on "Ads units".
- Now click on button.
- Choose the name for your new ad unit.
- Select the Ad unit size.
- Now scroll down and click on "Save and get code".
- Now Paste the ad code on your site.
That's it! You have successfully implemented AdSense on your HTTPS site.
Note: Old ad units will not show ads on your HTTPS site on which you changed page that is on now HTTPS from HTTP.
AdSense will remove all the non-SSL compliant ads from the auction for competing on pages that does not SSL-compliant. So if you convert your HTTP site into HTTPS, ads will earn less than older ads that was on your HTTP pages.
HOW NEW AD CODE WORKS ON HTTPS SITES?
The older code was looks like below code.
Synchronous ad code<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Asynchronous ad code<script async src="http://pagead2.googlesyndication.com/pagead/js/.js">
</script>
Now the new code for HTTPS enable sites are looks like below codes.
Synchronous ad code<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Asynchronous ad code<script async src="//pagead2.googlesyndication.com/pagead/js/.js">
</script>
So now whenever user visits your HTTPS secure site, AdSense will serve the ads via HTTPS and the visit from HTTP will still serve the ads from HTTP as it shows before.
WORDS FROM EDITOR
Let me know what you think about this move from Google AdSense Team. Do you have own HTTPS site and implement the new code on your site? Let me know how its works on your site via commenting below.