How to fix infeed ads not appearing when loading more

How to overcome infeed ads not appearing when loading more or infinite scrolling on Blogger
fix in-feed ads not appearing when using load more

fix in-feed ads not appearing when using load more

Hello everyone, on this occasion I will share how to fix in-feed ads that do not appear when a blog uses the load more feature.

If your blog uses infinite scroll and you place in-feed ads, when the Load More button is clicked, the in-feed ads often do not load along with the new content.

For those using infinite scroll from dte.web.id, in order for in-feed ads to load properly, the window.adsbygoogle script must be triggered again.

Make In-Feed Ads Appear When Using Load More

  1. Go to Blogger > Theme > Edit HTML.
  2. Copy the JavaScript below and place it above the </body> tag or &lt;!--</body>--&gt;&lt;/body&gt;.
  3. 
    <script>
      /*<![CDATA[*/
      if (typeof infinite_scroll !== "undefined") {
        infinite_scroll.on("load", function () {
          (adsbygoogle = window.adsbygoogle || []).push({});
          (adsbygoogle = window.adsbygoogle || []).push({});
        });
      }
      /*]]>*/
    </script>
    

  4. After that, click save.
Info! If your in-feed ads are enabled only on mobile view, you must also wrap the script above with a mobile conditional tag to avoid errors.

That’s all I can share this time about fixing in-feed ads not appearing when using load more . Thank you for visiting, and I hope this is useful.

Post a Comment