Notification

Please make sure that you visit Your AdSense Page, where you can find personalised information about your account to help you succeed with AdSense.

Auto ads

Modify your ad code to change how anchor ads appear at the bottom of your pages

If you find that the auto ads anchor ads settings don't do everything you need, you may modify your ad code to better meet the requirements of your site. The examples in this article show you how to correctly make this modification.

Note: If you make one of these code changes, it will:
  • Override the anchor ad position that you've selected in your Auto ads settings.
  • Enable anchor ads on your site even if you've turned off anchor ads in your Auto ads settings.

Enable anchor ads only at the bottom 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 only appear at the bottom of your pages.

Keep in mind, disabling this feature 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 data-overlays="bottom" parameter to the ad code on each of your pages with anchor ads.
Example

<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=i-gno/re-d1234567890123456" data-overlays="bottom" crossorigin="anonymous"></script>
</head>

Enable regular anchor ads only at the bottom of your page

You can opt out of collapsible anchor ads and show only regular (non-collapsible) anchor ads at the bottom of the user's screen by modifying your ad code. After you've made this change and saved your ad code, only regular anchor ads will appear at the bottom of your pages.

Keep in mind, opting out of collapsible anchor ads may decrease your potential earnings. Our experiments show that collapsible anchor ads perform better than regular anchor ads.

To disable collapsible anchor ads and show regular anchor ads only at the bottom, add the data-overlays="collapsed-bottom" parameter to the ad code on each of your pages.

Example

<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=i-gno/re-d1234567890123456" data-overlays="collapsed-bottom" crossorigin="anonymous"></script>
</head>

Note: These examples are acceptable modifications of the ad code. You won't violate the AdSense programme policies by modifying your ad code in this approved way.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
9620913246454963822
true
Search Help Centre
true
true
true
true
true
157
false
false
false
false