amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[Master Feature] Support IAB Consent Framework using amp-consent

Open jasti opened this issue 8 years ago • 50 comments

At the moment, consent within amp-consent is binary. Either the user can accept consent for all vendors on the page or reject consent for all vendors on the page. This feature provides the ability for a user to accept or reject consent on a per vendor basis. Further, this could also be enhanced to support consent on a per vendor and per purpose basis. for e.g. a user should be able to give consent at a granular level to Vendor A for the purpose of analytics but reject consent to Vendor A for the purpose of ads. Master issue is #15651

AMP will provide the generic framework for any 3rd party CMP to directly integrate with amp-consent to manage consent workflows.

If you are a CMP, please get in touch with us on this issue.

jasti avatar May 29 '18 22:05 jasti

@zhouyx Thanks for your answer!

The iframe option would work great. We are currently using the existing <amp-consent> with an iframe and that works pretty well.

For non-IAB vendors, we usually store the consent information for each of them with a structure that looks like this:

{
  enabled: ['custom_vendor_1', 'custom_vendor_2'],
  disabled: ['custom_vendor_3']
}

While that structure is less efficient than the IAB one, it is usually only used for a small number of vendors (I think our publishers use ~10 custom vendors on average).
The IAB specification allows using a format similar to the consent string for publisher-specific vendors (https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Consent%20string%20and%20vendor%20list%20formats%20v1.1%20Final.md#publisher-consent-stored) so that might be used as well. To be fully transparent, we like to have string IDs for those vendors but that might be very specific to our CMP and allowing a second consent-string that would be CMP/publisher-specific and can be referenced for blocking/unblocking tags might be enough.

Those custom vendors are important because the IAB mostly covers advertising vendors but not all others (social, analytics and A/B testing are the main ones we are seeing). It's especially important to have a way to cover at least all the different categories that have custom AMP components (so not just advertising but also analytics and social).

As to what we pass to these vendors, there are two cases:

  1. If they support receiving consent information through their own API, we provide that (that's the case for DFP or AdX, for instance: https://support.google.com/admanager/answer/7678538). That's similar to what the current AMP consent does I think so there might not be anything special to do except being able to keep the consent at the vendor level.
  2. If they don't support receiving consent information at all, we simply block the tag. That's the current behavior of AMP consent if we could somehow have a condition on consent specifically for a custom vendor with the data-block-on-consent

Hope this helps, happy to provide more details or examples if needed. Our documentation is public if that can help better understand the use case: https://developers.didomi.io/privacy-management/consent-management/consent-notice/vendors-and-purposes

jawadst avatar Aug 14 '18 02:08 jawadst

@zhouyx Another point that is usually pretty important to publishers is being able to load non-personalized ads without consent and then -sometimes- reload ads after consent has been given (it usually has an impact on viewability so not every publisher makes that choice). That's usually a configuration that is specific to advertising tags.

DFP, for instance, has support for non-personalized ads (although consent for cookies is still required) and I think that a lot of vendors are going to start offering more options for non-personalized ads eventually.

I think that the current AMP consent somewhat supports that with the combination of a fallback action with "dismiss" status but:

  1. I am not sure what the interpretation of "dismiss" is for vendors and if an extra status "unknown" would not be useful. Maybe "dismiss" is enough though but that could be made more explicit in the documentation.
  2. I don't think there is an option to reload some tags after consent is given. The scenario "load ads without consent then reload after consent" would be a combination of fallback=0 and "reload after consent".

jawadst avatar Aug 14 '18 03:08 jawadst

Thank you @jawadst for all the details.

For non-IAB vendors, we usually store the consent information for each of them with a structure that looks like this: { enabled: ['custom_vendor_1', 'custom_vendor_2'], disabled: ['custom_vendor_3'] }

Due to the fact that AMP page can be cached and not served from the origin domain. There's very strict usage on the storage space. I understand that your customized vendors number is small, but still I am worrying about the storage usage. Could you provide me an estimate on the maximum usage of storage in bytes? Currently we are thinking about a maximum of 300 bytes storage upper limit. Not sure if that will work for you.

I am not sure what the interpretation of "dismiss" is for vendors and if an extra status "unknown" would not be useful. Maybe "dismiss" is enough though but that could be made more explicit in the documentation.

It's up to the vendor that how they interpret 'dismiss'. We have vendors that decide to not serve ad on dismiss, but serve npa on 'reject'. The different to AMP is that, with 'dismiss' AMP will never store the decision.

I don't think there is an option to reload some tags after consent is given. The scenario "load ads without consent then reload after consent" would be a combination of fallback=0 and "reload after consent".

You're correct! There's no such reload option for AMP now. Publishers can choose to serve a npa while asking for consent. And when someone visit the site next time a personalized ad will be served. But that's depends on the publishers' configuration.

zhouyx avatar Aug 15 '18 21:08 zhouyx

I wonder if it is even possible for CMP to store some related information on server end?

zhouyx avatar Aug 15 '18 23:08 zhouyx

@zhouyx The IAB consent string is usually less than 60 or 70 bytes. Anyhow, with the next versions of the consent string there are some additions that can extend the consent string up to 700-800 bytes.

ghost avatar Aug 16 '18 08:08 ghost

@consentmanager Thank you for the heads-up. I didn't know the next version of the consent string expands its size so much : ( Is there a doc that I can refer to? Thank you!

zhouyx avatar Aug 16 '18 16:08 zhouyx

https://docs.google.com/document/d/1dYFuZQfw2hqdwv-1fI6B3QyzcDTVvCd0sqEdq2z_9cM/edit

ghost avatar Aug 16 '18 23:08 ghost

@zhouyx storing info on server end: probably possible (e.g. give the user a cookie with an id and save the consent string on servers) but not yet supported by the iab framework

ghost avatar Aug 16 '18 23:08 ghost

@zhouyx Storing consent on the server-side is possible independently from the IAB framework but most CMPs would rather not have to store anything server-side for availability and speed questions. Especially in AMP, it is extremely important to guarantee that everything is stored directly on the device to avoid extra HTTP requests and increased latency for the user (especially when the CMP views are likely to be blocking for the user).

jawadst avatar Aug 28 '18 13:08 jawadst

the biggest problem with storing info server-side as a CMP is identifying the user the information belongs to. without some kind of specific user identifier it isn't possible to map a server request to the consent information and your standard browser request doesn't contain enough information to accurately identify a specific user from random sites on the internet. that, and performance, are the main reasons we use either cookies or local storage for this information.

jeffnordlund-ghost avatar Aug 28 '18 16:08 jeffnordlund-ghost

Especially in AMP, it is extremely important to guarantee that everything is stored directly on the device to avoid extra HTTP requests and increased latency for the user (especially when the CMP views are likely to be blocking for the user).

@jawadst This is a great point. I know some would still want to make a request for additional information even with stored value. Is that true for your case? Can I assume that once there's previous stored consent string, AMP runtime can simply use that without sending request to CMP?

without some kind of specific user identifier it isn't possible to map a server request to the consent information

@jeffnordlund-ghost You're correct it's impossible to identify user on server side right now. But it can be supported if we feel server side storage is the way to go. What concerns me more is that do you feel it's OK for you to store an user's identifier as a CMP in general?

zhouyx avatar Aug 29 '18 00:08 zhouyx

@zhouyx the amp runtime should/must load the cmp code every time on every page, even if the value is already stored. the code will be providing the functionality/API for vendors, hence its necessary to load it even in cases where consent is already given

mobiluck avatar Aug 29 '18 08:08 mobiluck

No, that's kind of the point of not doing things server side. If we do that then we are forced to store some kind of user identifier and we have no desire to do that. All we want to do is provide users a mechanism to exercise their choices and then communicate those choices to the publisher.

jeffnordlund-ghost avatar Aug 29 '18 15:08 jeffnordlund-ghost

Good to see AMP moving in the direction of the IAB consent framework. One use case I haven't seen explicitly mentioned is an RTC call to a vendor that will then proxy additional calls to additional vendors. (Example: prebid) That will require passing the IAB consent string (or the same information in some other format) in the RTC call so the vendor can properly support the GDPR requirements in whatever it does with the request.

hhhjort avatar Sep 26 '18 17:09 hhhjort

I was under the impression that forwarding the consent string through to downstream calls is the responsibility of the vendor. So an auction vendor would be responsible for sending the string to the auction winner. I don't think there is anything special that would be required in AMP to support that.

jeffnordlund-ghost avatar Sep 26 '18 17:09 jeffnordlund-ghost

Well, the vendor needs the consent string to be able to forward it. If the vendor is being called via AMP RTC, then AMP needs to be able to provide the consent string in the RTC call for the vendor to have it.

hhhjort avatar Sep 26 '18 18:09 hhhjort

@keithwrightbos are there plans for DoubleClick to pass the consent string to RTC vendors?

jasti avatar Oct 15 '18 01:10 jasti

Hi @jasti ,

Is there any update on supporting consent string passed in RTC config? Seems to be a blocker for prebid support in AMP.

jdelhommeau avatar Feb 20 '19 15:02 jdelhommeau

Hello @jdelhommeau I talked to @jasti today on this topic. We can definitely add support to pass consent string along with the RTC request.

Trying to understand your requirement better? Are you working with the prebid server, that can consume the consent string along with the RTC request.

zhouyx avatar Feb 22 '19 22:02 zhouyx

I imagine the best way to support this is to have a macro that will be populated with the IAB consent string if it is available. Ideally also a GDPR flag to signify if the viewer is in a location where the GDPR applies. If these two can be placed in the query string, it will not be difficult to modify prebid server to read and make use of them.

hhhjort avatar Feb 25 '19 13:02 hhhjort