Checking Consent for a Vendor
In order to check if a certain vendor has consent, we recomment do use the global __cmp function and call command getCMPData:
var x = __cmp('getCMPData');
if("vendorConsents" in x)
{
if("s123" in x.vendorConsents && x.vendorConsents["s123"])
{
// Vendor s123 has consent
}
else
{
// Vendor s123 does not have consent
}
}