Amphtml: AMP Consent to support "gdprApplies" param

Created on 11 Mar 2020  路  14Comments  路  Source: ampproject/amphtml

TCF requires replacing the "gdprApplies" param.

AMP doesn't support that variable. The closest is the consentRequired field.
consentRequired doesn't work well because its value can be true when another regulations applies. Since AMP decided to support IAB TCF, I propose we introduce a new field to the CMP endpoint response "gdprApplies". The value will be stored along with the consent string and passed to ad vendors.

{
  "consentRequired": {boolean}
  "consentStateValue": {?enum} [default: null]
  "consentString": {?string} [default: null]
  "expireCache": {boolean} [default: false]
  "gdprApplies": {boolean} [default to consentRequired value]
}

Note: AMP will use the "consentRequired" value if the "gdprApplies" is not defined.

Important Notice:
AMP reduces the delay by always respecting the localStored value, and only updates it for the next user visit. That will apply to the "gdprApplies" value as well.

Feature Request

Most helpful comment

One thing I want to clarify is that AMP wants to add support to gdprApplies because it is required param by the TCF v2 and will be used by many ad vendors. That's the difference between gdprApplies and ccpaApplies. If ccpaApplies will be adopted by all vendors then we are more than happy to add support in the future.

Right now, you should be still be able to pass ccpaApplies and other custom param value to an ad vendor using the sharedData object.

All 14 comments

cc @yoannOgury @PierigOgury @andresilveirah @jawadst @tla-sirdata for feedback. Thanks!

Works for me. I think we should also consider a ccpaApplies field. Thanks

@tla-sirdata Does the US Privacy String's third field not accomplish ccpaApplies?

@micajuine-ho

This field only reflects the user choice to opt-out when the CCPA banner is surfaced to him.
The US Privacy String may have been updated when user has accessed the website while being in California but if he travels in Europe, CCPA no longer applies to him (uncommon case I admit).

Also if consentString is empty and gdprAppliesis false, there's no way to know that CCPA applies. The main idea is to transmit to AMP an information whether another regulation applies so the appropriate banner can be displayed.

One thing I want to clarify is that AMP wants to add support to gdprApplies because it is required param by the TCF v2 and will be used by many ad vendors. That's the difference between gdprApplies and ccpaApplies. If ccpaApplies will be adopted by all vendors then we are more than happy to add support in the future.

Right now, you should be still be able to pass ccpaApplies and other custom param value to an ad vendor using the sharedData object.

Hi, I'm not sure if this feature is live but I just want to let you know that we updated our checkConsentHref endpoint to include gdprApplies.

Hi @tla-sirdata, thanks for the update.

The AMP team plans to change the checkConsentHref API in the near future which will directly change the gdprApplies field.

Would you be willing to hold off your change until this or be willing to change your API when the checkConsentHref API changes?

If that's OK for you, I prefer to let the new field on. The consentRequired field is still unchanged.
I'll be able to update quickly when the API changes.

Thanks

Yes, that sounds good to me. Will update you when the changes occur.

@tla-sirdata Update: Change to gdprApplies PR is out now https://github.com/ampproject/amphtml/pull/28852

@micajuine-ho Thank you, I'll update and send you an integration example.

@micajuine-ho I've updated the checkConsentHref response and the promptUiSrc workflow to include consentMetadata (gdprApplies + consentStringType).

Please find an example here.

Hi @tla-sirdata, the metadata looks good from checkConsentHref!

What changes did you make to your promptUiSrc workflow?

@micajuine-ho I included consentMetadata in the consent-response message when the user saves his choices.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericlindley-g picture ericlindley-g  路  60Comments

zhouyx picture zhouyx  路  60Comments

retornam picture retornam  路  52Comments

ericlindley-g picture ericlindley-g  路  117Comments

sebastianbenz picture sebastianbenz  路  43Comments