Prebid
Prebid is able to use the consent information collected by IAB-compliant CMPs through the standard CMP JS API (for GDPR) and the IAB CCPA API (for CCPA). The consent information is then passed down to the bidders/vendors that support those APIs.
To enable Prebid support for CMPs and have it work with Didomi, follow the steps listed on this page.

Make sure that the consentManagement module is being added to your Prebid build:
OR
  • Build your own Prebid from source and include the module

Configure your Prebid deployment to enable consent management with an iab CMP by adding a consentManagement.gdpr configuration option:
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function() {
pbjs.setConfig({
consentManagement: {
gdpr: {
cmpApi: 'iab',
timeout: 8000,
allowAuctionWithoutConsent: false
}
}
});
pbjs.addAdUnits(adUnits);
});
The complete documentation from Prebid is available here: http://prebid.org/dev-docs/modules/consentManagement.html

If you do not collect consent for all IAB vendors, make sure to enable the IAB vendor IDs corresponding to all the bidders/adapters that you are working with in Prebid.
If you are collecting consent for all IAB vendors already, there is nothing else to do.

Configure your Prebid deployment to enable consent management with an iab CMP by adding a consentManagement.usp configuration option:
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function() {
pbjs.setConfig({
consentManagement: {
usp: {
cmpApi: 'iab',
timeout: 100 // US Privacy timeout 100ms
}
}
});
pbjs.addAdUnits(adUnits);
});
The complete documentation from Prebid is available here: http://prebid.org/dev-docs/modules/consentManagement.html
Copy link
On this page
Add the consent management module to Prebid
Configure Prebid
GDPR
CCPA