Code on only some pages
Google asks for the AdSense code on every page. Without it, the vignette has nowhere to appear.
Implementation guide
Vignette ads
A full-screen ad that appears when moving from one page of the site to another, and that the person can skip whenever they want.
Understand it in 1 minute
The vignette ad takes up the whole screen, but appears midway between one page and another. Think of a subway ride: between one station and the next, you see a big poster on the platform. At that moment you are not reading anything, you are just going to the next place. The vignette works like this: it appears when the page changes, and the person can skip it whenever they want.
It is part of AdSense Auto ads, in the group called overlay formats, which are ads that sit on top of the page. By default, the vignette appears when the person clicks a link on your site. When you turn on the vignette, Google also turns on other triggers, which you can turn off. A trigger is the action that makes the ad appear. Examples: the person returns to the site's tab after leaving it, opens a page of the same site in a new tab and switches to it, reaches the end of the article and scrolls back up, stays still for 30 seconds and then moves the page, or uses the back button in Chrome, Edge or Opera.
The person can close the vignette right away, with the ad's close button or with the browser's back button. There is also the frequency: this is the minimum time before showing a new vignette. The default is 10 minutes, and you can choose from 1 minute to 1 hour. Even when several triggers happen together, this frequency is respected.
What if a link should not trigger the vignette? You can mark that link in the HTML so it never triggers the vignette. Google says this is useful mainly on navigation elements, like the menu, and on other parts where the vignette would get in the way. The mark only applies to the link where it is placed, so you need to add it to each link. This way the person moves around the site without stumbling on an ad in the wrong place.
Step by step
Implemented example
<!-- No head de todas as páginas -->
<script async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000"
crossorigin="anonymous"></script>
<!-- Link que nunca chama a vinheta (por exemplo, no menu) -->
<a href="https://www.exemplo.com/"
data-google-vignette="false">Início</a>What Google recommends
Tips
Watch out
Google asks for the AdSense code on every page. Without it, the vignette has nowhere to appear.
After you turn it on, the ads can take up to an hour to appear on the page.
The exclusion attribute applies only to the link where it is placed. You need to put it on each link that should not trigger the vignette.
When you turn on the vignette, the other triggers come on automatically. If you do not want them, uncheck the option in the advanced settings.
Yes, if the other triggers are on, such as returning to the tab or staying still for 30 seconds and then moving. If you want it only on a click page change, turn those triggers off.
Yes. They can skip it at any time, with the ad's close button or with the browser's back button.
It can. The option for screens wider than 1,000 pixels, like computers, controls this.
The name vignette is from AdSense. In Ad Manager, the full-page format shown by GPT is called a web interstitial, with similar triggers.
Library
Everything on this page follows Google's official documentation. Read it straight from the source:
The audit reads the site as a visitor would, without clicking anything, and shows what to fix.