Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with documentation while upgrading to TCF 2.2 #351

Open
mostafaelassar opened this issue Nov 17, 2023 · 1 comment
Open

Issues with documentation while upgrading to TCF 2.2 #351

mostafaelassar opened this issue Nov 17, 2023 · 1 comment

Comments

@mostafaelassar
Copy link

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
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants