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.
- 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 thedata-overlays="bottom"
parameter to the ad code on each of your pages with anchor ads.
<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.
<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>