Ad code implementation

How to disable anchor ads at the top of your page

You can prevent anchor ads from appearing at the top of the user's screen by modifying your ad code. After you've made this change and saved your ad code, anchor ads will only appear at the bottom of your pages. Keep in mind that by disabling this feature you may decrease your potential earnings. Our experiments show that anchor ads perform better at the top of the user's screen.

To disable anchor ads at the top, add the overlays: {bottom: true} parameter to the ad code on each of your pages with anchor ads. Here's an example:

<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-1234567891234567",
    enable_page_level_ads: true,
    overlays: {bottom: true}
  });
</script>
</head>

Please be assured that this example is an acceptable modification of the AdSense ad code. You won't violate the AdSense program policies by modifying your ad code in this approved way.
Was this article helpful?
How can we improve it?