Stranica koju ste zatražili trenutačno nije dostupna na vašem jeziku. Možete odabrati neki drugi jezik pri dnu stranice ili u trenu prevesti bilo koju web-stranicu na željeni jezik pomoću ugrađene značajke Google Chromea za prijevod.

Add a consent revocation link to your app or site

Consent revocation is the process by which users in the EEA (European Economic Area), the UK, and Switzerland who consented to personalized ads can revoke that consent. You must provide a link in your site or app's menu that allows users who want to revoke consent to do so, then present the consent message to those users again.

Note:

  • Consent revocability is a requirement of the Privacy & messaging user consent program. Ensure you include a consent revocation link at the bottom of your site titled "Privacy and cookie settings" before publishing consent messages. You may also include a consent revocation link on your data, cookie, or privacy policy page.
  • AdSense publishers who create European regulations messages using the Auto Ads functionality do not need to follow this process to implement a consent revocation. The consent revocation link is shown automatically on their sites.

Consent revocation function for apps

Visit the developer documentation to learn more:

Consent revocation function for sites

Use Privacy & Messaging JavaScript API to display a revocation link on a site. Use the following function to call the revocation flow: googlefc.callbackQueue.push(googlefc.showRevocationMessage)

Code sample

<a href="javascript:googlefc.callbackQueue.push(googlefc.showRevocationMessage)">Privacy and cookie settings</a>.

Consent revocation function for AMP (Beta) 

European regulations messages for AMP are currently not available for AdSense.

Complete the following steps to call the revocation flow:

  1. Place the following consent revocation code before the "clientConfig" attribute within the <amp-consent> tag in your site's HTML code: "postPromptUI": "fcConsentRevocation"

    Code sample

    <amp-consent id="googlefc" layout="nodisplay" type="googlefc">
      <script type="application/json">
        {
    "postPromptUI": "fcConsentRevocation",
           "clientConfig": {
             "publisherIdentifier": "[unique publisher ID]"
           }
        }
      </script>
    </amp-consent>
  2. Place the consent revocation link code after the closing </amp-consent> tag in your site's HTML code to call the revocation flow:

    Code sample

    <div id="fcConsentRevocation">
       <button on="tap:googlefc.prompt(consent=googlefc, expireCache=true)">Manage
       Privacy Options</button>
    </div>
The consent revocation button will be displayed to all AMP traffic, including traffic originating from outside of the EEA, UK, and Switzerland.

The code within the fcConsentRevocation <div> tag is fully customizable. After you've implemented the code, you can adjust it as needed, but any changes to the code must adhere to the following guidelines:

  • You must include the button with the special syntax.
  • The <div> ID must match the postPromptUI value in the <amp-consent> HTML code.

    Example

    <div id="fcConsentRevocation"> should match "postPromptUI": "fcConsentRevocation"

  • The <amp-consent> ID must match the tap value in the button HTML code.

    Example

    <amp-consent id="googlefc" [...] > should match <button on="tap:googlefc.prompt [...]" >

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
7691533602912070397
true
Search Help Center
true
true
true
true
true
148
false
false