extensions/amp-ad-network-doubleclick-impl/amp-consent.md
The <amp-consent> element can be used to block the ad request and any RTC requests from being sent until the user or AMP consent checkConsentHref end point provide consent state. After the amp-consent extension has been configured (please refer to its documentation), it can be linked to the amp-ad element via the data-block-on-consent attribute.
If the user has responded negatively to the amp-consent component (user rejects the consent prompt), RTC call-outs will not be made and non-personalized ads will be requested.
If the user’s response to the amp-consent is unknown (user dismisses the consent prompt), by default, no ad requests or RTC call-outs are sent.
If data-npa-on-unknown-consent is set to true, non-personalized ads will be requested but RTC call-outs are not sent.
See Google Ad Manager Help Center article and restricted Data Processing article for more information.
sharedData key-valuesThe amp-consent response may set the following fields in the sharedData object for additional controls: