Mobile app version of vmapp.org
Login or Join
Hamaas447

: Do AdSense policies allow loading ads in the window load event? The official help does not mention such modification, but people mention this solution at various places on the net, saying they

@Hamaas447

Posted in: #Google #GoogleAdsense #GoogleAdsensePolicies #Performance

The official help does not mention such modification, but people mention this solution at various places on the net, saying they do this for quicker page load.

How can one be sure that it's an allowed modification of the default ad code (which otherwise loads during page load, before the window.load event), so one's account won't get suspended or banned for it?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sent6035632

According to this Google Policy:


Publishers are permitted to make modifications to the AdSense ad code so long as those modifications do not artificially inflate ad performance or harm advertisers.


Loading Ad. script on Window load event in no way breaches this agreement. So by this one sentence alone, you can be sure that it is allowed.

Also, according to this Modification of the AdSense ad code document:


In general, we recommend copying and pasting the ad code. In some situations though, we understand that modifications are crucial to a clean user experience.


So here as well you can see the same confirmation. Basically as long as you don't fundamentally change how the ads are being displayed, you are fine.

Furthermore, in the Techniques to avoid section, you'll see none of the points conflicts with window load event. On the other hand, the Acceptable modifications section clearly states:


Here are some acceptable modifications ...


That means, not all the acceptable modifications are listed there. So, as long as you simply load the CODE in window load event & do no further artificial delay, Google have no reason to penalize you, since window load event is one of the most common Browser Default method people use to load additional scripts and contents. At best they may say that it's not necessary anymore & their asynchronous CODE is optimized enough.

Finally: I've done this myself on my own site and other client sites & never faced any problem whatsoever. Also didn't ever heard or seen anyone having any issue for this. Even a quick search on Google didn't reveal anything like that. So you should be fine.

10% popularity Vote Up Vote Down


 

@Yeniel560

This is not necessary. The latest ad code uses the "async" attribute on the script tag, which means it does not block rendering or delay loading of your site.

The tag that loads the script looks like this:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>


If you are loading multiple ads per page you should include that line once only (not once per ad).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme