getVendorPurposeMapping command (GDPR Standard)

Sourcepoint offers your organization additional commands that can be used for GDPR Standard web implementation. This provides a level of consistency and feature overlap between IAB TCF and Standard integrations.

The getVendorPurposeMapping command enables your organization to handle vendors participating in Standard campaigns.


getVendorPurposeMapping command

The command returns a JSON object that contains information on the purposes and corresponding legal basis attributed to each vendor and their legal basis. The format of the getVendorPurposeMapping command is as follows:

Browser console command With Postman Server-side script (PHP example)
//Input into browser console to receive response
window._sp_.gdpr.getVendorPurposeMapping((data, success) => { console.log(data,success); });

getVendorPurposeMapping response

The response contains the consent data that maps the purposes and legal basis to the vendor. 

Vendor mapping

The categories section lists the purpose ids for each vendor with their legal basis type. 

Parameter Description
_id Purpose ID
type The legal basis set for this purpose - consent, legitimate interest, not allowed, disclosure only
vendorId Vendor ID
length Number of purposes attached to this vendor
0:
   categories:
      0: {_id: "5ff4ca88f485275018dd8b9e", type: "CONSENT"}
      1: {_id: "5ff4ca88f485275018dd8b99", type: "CONSENT"}
      2: {_id: "5ff4ca88f485275018dd8ba3", type: "CONSENT"}
   vendorId: "5e7ced57b8e05c47e418b73c"
   length: 3
1:
   categories:
      0: {_id: "5ff4ca88f485275018dd8b9e", type: "CONSENT"}
      1: {_id: "5ff4ca88f485275018dd8b99", type: "LEGITIMATE_INTEREST"}
      2: {_id: "5ff4ca88f485275018dd8ba3", type: "CONSENT"}
   vendorId: "5fd78083fc186126cb9fabad"
   length: 3
Was this article helpful?
0 out of 0 found this helpful