Why are there no purposeConsents for each vendor in the vendorConsents?
The purposeConsents has only 1 set of purpose consents.
window.__cmp('getVendorConsents', [1, 12], function(result) {
console.log(result);
/*
// result
purposeConsents: {1: false, 2: false, 3: false, 4: false, 5: false}
vendorConsents: {12: false, 1234: false}
if there are multiple vendor IDs why is there only one set of
purposeConsent for multiple vendors?
*/
});
Should purposeConsents look something like:
purposeConsents: {
1: {1: false, 2: false, 3: false, 4: false, 5: false},
12: {1: false, 2: false, 3: false, 4: false, 5: false},
}
so you can tell which purposes are enabled for which vendor
Why are there no
purposeConsents
for each vendor in thevendorConsents
? The purposeConsents has only 1 set of purpose consents.