Is this considered a violation of the AdSense TOS?

rdn

Well-known member
Is this considered a violation if I modify the code from this:
JavaScript:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-123" crossorigin="anonymous"></script>

To this:
JavaScript:
<script>
  setTimeout(function() {
    var adsense_js = document.createElement('script');
    adsense_js.async = true;
    adsense_js.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-123";
    adsense_js.crossOrigin = "anonymous";
    document.body.appendChild(adsense_js);
  }, 1000);
</script>

I just want to delay the execution of the javascript.
 
Unless there's a Google AdSense staff member here on this forum to answer this, I don't know if anyone here is qualified to give you an answer. All we can do is refer you to their TOS and say go with what that says.
 
  • Like
Reactions: rdn
Back
Top Bottom