Home / Snippets / How to Display Google AdSense Anchor Ads at the Bottom of the Page
How to Display Google AdSense Anchor Ads at the Bottom of the Page cover

How to Display Google AdSense Anchor Ads at the Bottom of the Page

1.5K

3 years ago

0 comments

By default Google AdSense display the anchor ads at the top of the page, to change it to the bottom of the page you can make use of the "overlays" configuration like below.

overlays: {bottom: true}

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

Do note that based on Google experiment, top anchor ads earn more than the one shown at the bottom of the page.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this