Open mostafaelassar opened 9 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.
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: ThegetTCData
used to support avendorIds
parameter but there is nothing stated here ifaddEventListener
supports that even though it works when tried out. Should I be using that or not?