After you’ve set up your site, you can create a message that's only displayed to users who have ad blocking or script blocking software installed.
- Sign in to your AdSense account.
- Click Privacy & messaging.
- Click Ad blocking recovery.
- Click Create message. The “Edit message” page opens.
- Select the sites where this message will be displayed:
- Click Select sites.
- Select the desired sites.
- Click Confirm.
- (Optional) To include or exclude certain pages in the ad blocking recovery message, click Add URLs. You can add up to 5 total inclusions or exclusions per domain. In your domain, click:
- Add page inclusion: Specify certain pages to include in the ad blocking recovery message. Setting up page inclusions automatically excludes all other pages (for example, if you only want the ad blocking recovery message to appear on one section of your site).
Note: If you don’t add any inclusions, the ad blocking recovery message will apply to your entire site. If you add page inclusions, any pages not included are automatically excluded from the ad blocking recovery message.
Page exclusions apply after inclusions. This means exclusions should be added if you have pages within the included site or sections that you’d like to exclude.
- Add page exclusion: Specify certain pages to exclude from the ad blocking recovery message. Site visitors will always be able to visit this page without viewing an ad blocking recovery message.
- If you've implemented the ad blocking message tag on a page, a page view is still counted in the ad blocking rate even if the page did not show an ad blocking message due to exclusions.
Learn how to properly format your URLs for page inclusions and exclusions.
- If you've implemented the ad blocking message tag on a page, a page view is still counted in the ad blocking rate even if the page did not show an ad blocking message due to exclusions.
- Add page inclusion: Specify certain pages to include in the ad blocking recovery message. Setting up page inclusions automatically excludes all other pages (for example, if you only want the ad blocking recovery message to appear on one section of your site).
- Select the languages in which this message will be displayed:
- Default language: The message is shown in the default language when the user’s device language cannot be determined, or when the user’s device language doesn't adequately match the selected “Additional languages.”
- Additional languages: The message can be shown to users in any of the “Additional languages” that match the user’s device language. Languages you select here should match the languages in which your site is available. You can edit the message text for each of the "Additional languages."
Example
If you select “Dutch” in the “Additional languages” field, a user whose device language is set to Dutch will be shown the Dutch version of the European regulations message.
- (Optional) Turn on Custom choice to offer your visitors a choice between allowing ads or a custom alternative solution to allowing ads. For example, you might ask users to either allow ads or subscribe to your site, where subscribing to your site is the custom choice.
This option requires that you implement the
googlefc.controlledMessagingFunction
function of the Funding Choices unified API. Learn more about setting up a Custom Choice message - In the "Message name" field, enter a descriptive message name that will help you identify the message later. The name is shown only in the Privacy & messaging page and won't be visible to users.
- In the "Placement" area, decide how and where you'd like the message to be displayed on your site:
- Centered modal (dismiss): The message is centered on your page with a dark background that partly obscures page content. Users can close the message.
- Centered modal (non-dismissible): The message is centered on your page with a dark background that partly obscures page content. Users cannot close the message. Not available for the "Allow ads or dismiss" message type.
- Bottom pinned (dismiss): The message is fixed to the bottom of the page to allow site visitors to view the page's content. The message stretches to fit the full width of the device screen. Users can close the message.
- (Optional) Edit and format the message to match your site's editorial and visual standards.
- Click Publish to publish the message, or click Save draft to save without publishing.
You must review your account settings before publishing your first ad blocking recovery message. Click Review settings and make a decision in the "For Acceptable Ads users" section.
Include or exclude pages in the ad blocking recovery message
You can choose which pages to include or exclude in the ad blocking recovery message.
Formatting URLs to include or exclude
The example below shows how a specific URL can be used to broadly or narrowly include or exclude pages in an ad blocking recovery message. Note that exclusions will always override inclusions.
If you enter example.com
and specify the following page inclusion and page exclusion:
path-include /articles/
page-exclude /articles/my-public-article
Then (assuming you don't have subdomains configured underneath example.com
):
- Offerwall will not display on either
example.com/other/
orexample.com/other
. - Offerwall will display on
example.com/articles/one
andexample.com/articles/one
. - Offerwall will not display on either
example.com/articles/my-public-article
orexample.com/articles/my-public-article
.
For more details about showing user messages on specific subdomains, review user messages on sites and subsites.