getNewComplianceTypes

The getNewComplianceTypes() method retrieves a list of consent types that have been added to the setup and haven't yet been saved in the ppms_privacy_[appId] cookie.

Syntax

ppms.cm.api('getNewComplianceTypes', 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(
  'getNewComplianceTypes',
  function (types) {
    console.log(types)
  },
  function (error) {
    console.error(error)
  }
)