AMP has its proper way to integrate DFP and AdSense into the website through AMP component
<amp-ad type=”doubleclick”> or
<amp-ad type=”adsense”>. If you want to link your consents from
<amp-consent> to your ads and serve personalized/non-personalized ads based on consent, you will have to configure it on your side:
<amp-ad> tags do not use
data-block-on-consent, or the
amp-consent component has not been correctly configured, requests are sent normally.
To block the ads from loading depending on the consent, you will have to add
data-block-on-consent to your component.
<amp-ad data-block-on-consentwidth=320 height=50type="doubleclick"data-slot=""></amp-ad>