For desktop browsers
Using Privacy & messaging, you can create and display a message to your users to help recover revenue lost to ad blockers. You can use ad blocking recovery messages to ask users to allow ads on your site or offer them alternative ways to support your site.
To understand how site visitors interact with your messages, create a Privacy & messaging report that includes the ad blocking recovery message metrics and dimensions.
Ad blocking recovery messages are only available on websites viewed in desktop browsers. They won't appear in mobile apps or on websites viewed in mobile browsers.
Structure of a message
An ad blocking recovery message contains a single "screen" (or "page") that is shown to users when they view your message.
Ad blocking recovery messages include the following elements:
- Logo: Your site's logo. To include a logo here, add a logo to your message.
- "Allow ads" button: Allows users to adjust their ad blocker settings to allow ads on your site. Closes the message.
- (optional) Custom choice button: Allows users to choose a custom option you have implemented for your site. For example, a "Subscribe" button would allow users to opt in to a solution you have implemented to allow them to subscribe to your site without seeing ads. Learn how to implement a custom choice option
Custom Choice requires you to implement the
googlefc.controlledMessagingFunction
function of the Privacy & Messaging JavaScript API before publishing your message. Click View code to review a sample code snippet.
Google has ended support for the one-click allowlisting feature. Ad blocking messages will show instructions to end users on how to allow ads on the site.