Ad code & integration

Anchor, vignette and side rail ads: how AdSense overlay formats work and how to control them

Last updated Published By the editorial team6 min5 sources

Key takeaways

  • Anchor, vignette and side rail ads are Auto ads overlay formats: Google places them over the page's content without affecting its layout.
  • Anchor ads stick to the top or bottom of the screen; settings control dynamic anchors, the position and whether they appear on screens wider than 1000px.
  • Vignette ads are full-screen ads between page loads, triggered by a link click by default, plus additional triggers that are on unless you opt out.
  • Side rail ads are desktop only and can be kept away from a section with the google-side-rail-overlap="false" attribute.
  • Vignette and side rail ads have their own Ad format filter in AdSense reports, so you can measure them before and after a settings change or in an Auto ads experiment.
Roadside billboards and advertising clutter along a street
Image: BILLBOARDS AND ADVERTISING CLUTTER ROADSIDE - NARA - 546184,Marc St. Gil,Public domain,via Wikimedia Commons.

Anchor, vignette and side rail ads are the three overlay formats of AdSense Auto ads. Google places them “over a page’s content without affecting its layout”: anchors stick to the top or bottom of the screen, vignettes fill the screen between page loads, and side rails stick to the sides on desktop. You control them per site in the Auto ads settings, not in your HTML.

What are the three overlay formats?

From Google’s Auto ads settings page:

Format What it does Devices
Anchor ads Stick to the top or bottom of the user’s screen and are “easily dismissible” Mainly mobile, can appear on desktop
Vignette ads “Full-screen ads that appear between page loads and can be skipped by users at any time” Mobile and desktop
Side rail ads Stick to the sides of the page as it scrolls Desktop only (side rail article)

All three belong to the “Overlay formats” group, next to the intent-driven formats (ad intents) and the in-page formats (banner and Multiplex ads). If you are still choosing between Auto ads and manual placements, start with Auto ads vs manual ad units.

How do I turn them on or off?

The steps are the same for each format (vignette article, side rail article):

  1. Sign in to AdSense and click Ads.
  2. In the sites table, click Edit next to your site. The ad settings preview opens.
  3. Under “Ad settings”, turn on Auto ads.
  4. Under “Overlay formats”, select or clear Anchor ads, Vignette ads and Side rail ads.
  5. Click Apply to site, then either Apply now and Save, or Run experiment first.

Google notes that it can take up to an hour for ads to appear, and that the AdSense code must be on every page. If you choose the experiment, AdSense runs it “on 50% of your site’s traffic for 90 days” and stops when it has enough data. See AdSense experiments for reading the results.

Which settings control anchor ads?

Under Overlay formats, Advanced settings, Google lists three anchor controls:

Setting Options
Allow dynamic anchors Checked or unchecked
Allow anchor ads on screens wider than 1000px, like desktop Uncheck to keep anchors off wide screens
Select anchor ad position Top or bottom, Top only, Bottom only

The position setting matters if your site already uses the top or bottom edge. A sticky header, a bottom navigation bar on mobile, a cookie banner or a chat widget can compete with an anchor for the same strip of screen. Choose the position that leaves your own controls usable, and check the result in the preview on a phone-sized screen.

The anchor and side rail position settings were added in May 2025, according to Google’s announcement. The Help Center also has an article on modifying your ad code to change how anchor ads appear at the bottom of pages. If you need that, follow Google’s article directly rather than altering the generated code on your own; the code modification policy forbids changes that artificially inflate ad performance.

How do vignette ads work?

Per Google’s About vignette ads:

  • Vignettes are full-screen ads shown between page loads, and users can skip them at any time.
  • “By default, vignette ads appear when a user clicks on a link on your site.”
  • A frequency setting decides how much time must pass before a user can see another vignette. Per Choose the frequency for your vignette ads, the default is 10 minutes and you can pick anything “from 1 minute to 1 hour”. Set it under Overlay formats > Advanced settings > Vignette ad frequency.
  • Users can close a vignette with the browser back button or the ad’s close button.

What are the additional triggers?

When you turn on vignettes, Google writes that you are “automatically opted into a suite of additional triggers”. A vignette may then also appear when a user:

  1. Unhides a tab or window (returns to it, unlocks the screen, or restores a minimized window).
  2. Clicks the browser’s navigation bar (desktop only).
  3. Opens a same-site page in a new tab and switches to it.
  4. Reaches the end of the page’s main article element and scrolls back up, or waits 5 seconds on mobile or 10 seconds on desktop.
  5. Is inactive for at least 30 seconds and then interacts again.
  6. Goes back with the browser’s back button, in supported browsers (currently Chrome, Edge and Opera).

Google adds that vignettes “respect the frequency you set”, even if a user triggers several of these actions. To opt out: Ads > Edit > Overlay formats > Advanced settings, uncheck Allow additional triggers for vignette ads, then Apply to site.

The trigger on “the end of a page’s main article element” suggests that a clean <article> or <main> structure helps the format detect where your content ends. Google does not document how it detects that element, so treat it as a reason to keep semantic markup, not as a tuning lever.

Other vignette controls

  • Allow vignette ads on screens wider than 1000px, like desktop: uncheck to keep vignettes on smaller screens only.
  • Prevent a link from triggering vignettes: per Google’s article, add data-google-vignette="false" to the <a> tag. Google suggests it for “navigation elements or other site elements where they might be disruptive”. It is also useful for links that open a checkout, a login or a download.
<a href="/checkout/" data-google-vignette="false">Go to checkout</a>

Add the attribute to each link you want to exclude; there is no page-wide switch for it.

How do I control side rail ads?

Side rails have one advanced setting, the position: Left and right, Left only, or Right only. Google’s FAQ adds a page-level control: to stop side rail ads from overlapping a section, add google-side-rail-overlap="false" to the element that holds it:

<div class="wide-table" google-side-rail-overlap="false">
  <!-- Side rail ads won't overlap the content in this section. -->
  <table>...</table>
</div>

Use it on full-width content that runs to the edges of the viewport, such as wide tables, image galleries or interactive charts. On a layout with a narrow central column, side rails usually sit in the empty margins.

How do I measure their impact?

Google documents an Ad format filter for vignettes and side rails. The steps are: Reports > create a custom report > filter > Ad format > select Vignette or Side rail ads > Apply.

Revenue is only half the picture. Overlays change the reading experience, so watch the other side too:

Signal Where to look What a problem looks like
Earnings and page RPM AdSense reports, Ad format filter Higher format revenue but flat or lower total page RPM
Pages per session Your analytics Fewer pages per session after enabling vignettes
Bounce or engagement Your analytics Drop on mobile after an anchor or trigger change
Viewability Active View metrics See Active View viewability
Core Web Vitals Field data INP changes after enabling overlays, see Ads and Core Web Vitals

The cleanest comparison is an Auto ads experiment, because AdSense splits the traffic for you. Comparing two calendar periods mixes in seasonality.

Common mistakes

  • Fighting an anchor with your own sticky bar. Two sticky elements on the same edge leave little room to read on mobile. Pick one edge each.
  • Building your own sticky ad units without reading the rules. Google’s Ad formats FAQ allows sticky manual units only under strict conditions: 300px wide or less, desktop only, one sticky ad in the viewport at a time, no overlap with content. See also the ad placement policies.
  • Forgetting the additional triggers. They are on by default when vignettes are on. If users complain about full-screen ads when they return to a tab, that is one of the triggers, and you can opt out.
  • Judging overlays on one day of data. Revenue per format moves with traffic mix. Use an experiment or several weeks of data.
  • Testing by clicking. Use the ad settings preview to see where overlays appear. Do not click your own ads.

Frequently asked questions

Do anchor and vignette ads cause layout shift?

Google describes overlay formats as ads placed over a page's content without affecting its layout. They do not push your content down the way an in-page ad inserted into the text does. They can still cover part of the screen, so check that an anchor does not hide your own sticky elements, such as a cookie banner, a chat button or a bottom navigation bar.

Can I turn off vignette ads on desktop only?

Yes. In the Overlay formats advanced settings, uncheck the option that allows vignette ads on screens wider than 1000px, like desktop. Vignettes then keep running on smaller screens. Anchor ads have the same kind of checkbox. Side rail ads are only available on desktop, so turning them off removes them entirely.

What are additional triggers for vignette ads?

They are extra moments when a vignette may show besides a link click: unhiding a tab, clicking the browser navigation bar on desktop, switching to a same-site page opened in a new tab, reaching the end of the main article, a return after 30 seconds of inactivity, or the back button in supported browsers. You are opted in when vignettes are on, and can opt out in Advanced settings.

Can I use overlay formats without Auto ads?

Anchor, vignette and side rail ads are Auto ads formats, configured per site on the Ads page. You can turn on Auto ads with only the overlay formats selected and the in-page formats turned off, and keep your own manual ad units for in-content positions. The AdSense code in the head of every page is required for them to appear.

Sources

  1. Auto ads settings · Google AdSense Help
  2. About vignette ads · Google AdSense Help
  3. About side rail ads · Google AdSense Help
  4. Choose the frequency for your vignette ads · Google AdSense Help
  5. Prevent a link on your site from triggering vignette ads · Google AdSense Help