Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • It is possible to customize AdConsent, like a custom logo. Please contact your Account Manager to set this information for you.

  • Add the attribute data-block-on-consent to all elements you want to block until the consent is given. For example: <amp-ad data-block-on-consent ...></amp-ad>.

  • To block all the AMP elements present on your page by default, add the meta tag "amp-consent-blocking" in the page <head>.

    Code Block
    <meta name="amp-consent-blocking" content="amp-analytics,amp-ad"/>COPY>

    The tag will block all AMP components by default (<amp-ad>, <amp-analytics>, <amp-sticky-ad>, <amp-iframe>,...) until consent is given.
    This guide will always use the attribute data-block-on-consent explicitly, meaning this tag is not required.

...