appnexus / cmp

Consent Management Platform Reference Implementation
Apache License 2.0
84 stars 49 forks source link

vendorConsents's purposeConsents only works for single vendor? #135

Open epikhighs opened 5 years ago

epikhighs commented 5 years ago

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