InteractiveAdvertisingBureau / GDPR-Transparency-and-Consent-Framework

Technical specifications for IAB Europe Transparency and Consent Framework that will help the digital advertising industry interpret and comply with EU rules on data protection and privacy - notably the General Data Protection Regulation (GDPR) that comes into effect on May 25, 2018.
855 stars 359 forks source link

Issues with documentation while upgrading to TCF 2.2 #351

Open mostafaelassar opened 9 months ago

mostafaelassar commented 9 months ago

I'm upgrading to TCF 2.2 and I have a couple of questions:

Regarding the version parameter here: It is not clear which values are supported, eg. minor versions. Does this mean that I should change it to 2.2 or not?

Regarding the addEventListener command here: The getTCData used to support a vendorIds parameter but there is nothing stated here if addEventListener supports that even though it works when tried out. Should I be using that or not?

HeinzBaumann commented 6 months ago

@mostafaelassar The version number passed to the API is an integer so only major version is used, which is 2. The API addEventListener doesn't support the vendorIds parameter. It is possible that our reference implementation has support for it but officially it is not supported. You should use addEventListener as document, returning a tcData object containing all the vendors that were specified by the CMP and then check through data to find vendors of interest. Hope this helps.