Open janwinkler opened 1 year ago
@janwinkler this is quite old. Is this still wrong in the latest EEA/UK Section spec? This is what I currently have:
0
0
Purpose Flatly Not Allowed by Publisher (regardless of Vendor declarations)1
Require Consent (if Vendor has declared the Purpose IDs legal basis as Legitimate Interest and flexible)2
Require Legitimate Interest (if Vendor has declared the Purpose IDs legal basis as Consent and flexible)3
UNDEFINED (not used)The encoding would work but the JS API wouldnt know what to output. Thats why with the last iteration of the core spec we added ArrayOfRanges and N-ArrayOfRanges. ArrayOfRanges would be the correct datatype for the Restriction replacing all fields from NumPubRestrictions up to the end with one field (call it PubRestrictions or something)
ps: see tcf canada, there we already went one step further and used N-ArrayOfRanges instead of ArrayOfRanges
The Publisher restrictions field is not really compatible with GPP since it does not reflect one (1) datatype but mutlitple in an unknown amount. The correct datatype would be:
Name: "RestrictionDataType" (or whatever) Encoding: variable JS API output: Object of Name-Number pairs (e.g. {1: {13:2, 15:1, 17:0, 18:0}, 2:{11:2, 12:1, 13:0, 15:0}}
"RestrictionDataType" : consists of
Where "num" defines the amount of restrictions to come. for each restriction there is a prupose ID and a restriction type followed by a range of IDs for which these restrictsion are valid.