getComplianceTypes
The getComplianceTypes() method retrieves a list of consent types for the current setup. A consent type will only appear in the output if at least one tag has it set.
Syntax
ppms.cm.api('getComplianceTypes', onFulfilled, onRejected);Parameters
onFulfilled: (types: string[]) => void (required)
The fulfillment handler callback. It receives an array of consent types. Example: ["remarketing", "analytics"].
onRejected: (error: object) => void
The rejection handler callback. If not specified, the error is logged in the console.
Examples
ppms.cm.api(
'getComplianceTypes',
function (types) {
console.log(types)
},
function (error) {
console.error(error)
}
)