How To Pass GDPR Consent When Using Prebid

Background Information

In order to maximize publisher revenue for inventory where GDPR is applicable, a Consent Management Platform (CMP) must be used. When utilizing a CMP, Sharethrough does not communicate directly with the platform and the consent string should be passed to Sharethrough in the bid request from your Prebid wrapper. In order to pass the correct data in the bid request, Prebid's GDPR Consent Management module must be configured. Without this module, Sharethrough will not be passed the consent data and will treat every impression as if consent was not given and it will have a negative impact on monetization.

Sample Code

Here is an example setup for a publisher utilizing an IAB compliant CMP that required to utilize this module and pass consent strings to the configured Bidders. This code should be added to your Prebid configuration:

pbjs.setConfig({ consentManagement: { cmpApi: 'iab', timeout: 8000, allowAuctionWithoutConsent: false } });

References

Complete configuration instructions can be found in Prebid's Dev Docs: http://prebid.org/dev-docs/modules/consentManagement.html