How to Fix AdSense Ads Not Showing
This time, Arlina Code will provide AdSense tips on how to fix AdSense ads not appearing on certain article pages. The method is quite simple: enable robots.txt in Blogger Settings.
Why aren't AdSense ads showing , or are only some AdSense ad units showing on certain pages? One possible reason AdSense ads aren't showing on certain pages is that you've recently activated Google's HTTPS feature for custom domains on your blog, as I shared in this post: How to Enable HTTPS on a Blog with a Custom Domain .
Yes, changing or migrating a blog from HTTP to HTTPS requires a process that also results in the loss of ads from AdSense ad units, a process never experienced before. This is due to the different URL protocols: one is unencrypted (HTTP) and the other uses an encrypted system (HTTPS) . This confuses the system when interpreting two different protocols on a single blog page. But don't worry, this issue has been addressed by Google , which now supports ad units using both HTTP and HTTPS. If it does support it, why are ads still not appearing on some blog pages? To resolve this, please follow these steps.
By default (before it is enabled) the format for robot.txt is as follows
Here we only need to change (activate) robot.txt so that ads can appear on all blog pages.
First, open Blogger > Click the Settings menu > Click Search preferences > Then find the custom robot.txt as shown in the image below
After that, fill in the empty form in it with robot.txt format . this
Then click the Save Changes button and you're done. This will also fix the Indexed Though Blocked by robots.txt error in Search Console.
Additional
After implementing custom robot.txt, you also need to remove AdSense JS like this
and replace it with this code, apply it before the body closing code </body> or <!--</body>--></body>
After following the steps above, AdSense ads won't appear immediately; everything takes time. You just need to wait for Google to crawl your blog using the new robots.txt format. That's all from Arlina Code on how to fix AdSense ads not showing . We hope this is helpful, and greetings.
Why aren't AdSense ads showing , or are only some AdSense ad units showing on certain pages? One possible reason AdSense ads aren't showing on certain pages is that you've recently activated Google's HTTPS feature for custom domains on your blog, as I shared in this post: How to Enable HTTPS on a Blog with a Custom Domain .
Yes, changing or migrating a blog from HTTP to HTTPS requires a process that also results in the loss of ads from AdSense ad units, a process never experienced before. This is due to the different URL protocols: one is unencrypted (HTTP) and the other uses an encrypted system (HTTPS) . This confuses the system when interpreting two different protocols on a single blog page. But don't worry, this issue has been addressed by Google , which now supports ad units using both HTTP and HTTPS. If it does support it, why are ads still not appearing on some blog pages? To resolve this, please follow these steps.
How to Fix AdSense Ads Not Showing
By default (before it is enabled) the format for robot.txt is as follows
User-agent: Mediapartners-Google
Disallow:
User-agent: *
Disallow: /search
Allow: /
Sitemap: https://www.alifu.my.id/sitemap.xmlHere we only need to change (activate) robot.txt so that ads can appear on all blog pages.
First, open Blogger > Click the Settings menu > Click Search preferences > Then find the custom robot.txt as shown in the image below
After that, fill in the empty form in it with robot.txt format . this
User-agent: Mediapartners-Google
Allow: /
Disallow:
User-agent: *
Disallow: /search
Allow: /
Sitemap: https://www.alifu.my.id/sitemap.xmlReplace www.alifu.my.id with your blog's domain name
Then click the Save Changes button and you're done. This will also fix the Indexed Though Blocked by robots.txt error in Search Console.
Additional
After implementing custom robot.txt, you also need to remove AdSense JS like this
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>and replace it with this code, apply it before the body closing code </body> or <!--</body>--></body>
<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>After following the steps above, AdSense ads won't appear immediately; everything takes time. You just need to wait for Google to crawl your blog using the new robots.txt format. That's all from Arlina Code on how to fix AdSense ads not showing . We hope this is helpful, and greetings.


Post a Comment