Prebid.js Consent Management

Certified CMP for Prebid header bidding. Pass IAB TCF 2.3, GPP, and CCPA consent signals to every bidder in your stack, automatically.

Prebid Support at a Glance
Supported
Yes: native IAB CMP API integration
Prebid modules
consentManagement, consentManagementGpp, consentManagementUsp
Standards
IAB TCF 2.3, IAB GPP, US Privacy (CCPA)

UniConsent is an IAB Europe TCF 2.3 certified CMP (CMP ID 68) with native support for Prebid.js consent management. Consent signals collected by UniConsent flow automatically to every bidder in your header bidding stack, IAB TCF for GDPR, IAB GPP for US state privacy laws, and US Privacy (CCPA), with no custom code required.

Prebid.js and the IAB TCF

Prebid.js reads GDPR consent through the standard IAB TCF API (window.__tcfapi). UniConsent implements the TCF 2.3 specification, so once the consent banner is answered, Prebid's consentManagement module receives the TC string and gdprApplies flag and attaches them to every bid request. Demand partners registered on the IAB Global Vendor List then process bids according to the user's actual consent choices.

Because UniConsent is a registered CMP (verify CMP ID 68 on the IAB Europe CMP list), the TC strings it generates are accepted by all TCF-compliant SSPs, DSPs, and ad servers, including Google Ad Manager.

How UniConsent Passes Consent to Prebid

Enable the Prebid consent modules that match the frameworks you need:

  • consentManagement, IAB TCF for GDPR
  • consentManagementGpp, IAB GPP for US state privacy laws
  • consentManagementUsp, US Privacy / CCPA

Then point each at the standard IAB CMP API:

pbjs.setConfig({
  gdpr: {
    cmpApi: "iab",
    timeout: 3000,
    allowAuctionWithoutConsent: false,
  },
  usp: {
    cmpApi: "iab",
    timeout: 500,
  },
  gpp: {
    cmpApi: "iab",
    timeout: 3000,
  },
});

UniConsent exposes the standard __tcfapi, __gpp, and __uspapi APIs, so Prebid discovers the CMP automatically, no vendor-specific adapter needed. The auction waits for the consent signal (up to your configured timeout) before bid requests fire, keeping every request compliant.

Prebid + GPP for US State Laws

For traffic from California, Virginia, Colorado, Connecticut, Utah, and other US states with privacy laws, UniConsent generates IAB GPP strings covering the applicable state sections and the MSPA. Prebid's consentManagementGpp module forwards these signals to bidders, so a single UniConsent installation handles GDPR consent in Europe and opt-out signals in the US with geo-targeted banners.

Works With Your Full Ad Stack

Prebid consent is one part of the publisher consent stack. The same UniConsent tag also passes consent to:

Setup

Follow the Prebid integration tutorial for the full setup, including how to delay the auction until the consent signal is ready. Most publishers are live within minutes: install the UniConsent tag, enable the Prebid consent modules, and verify TC strings with the TCF decoder.

FAQ

Does UniConsent work with Prebid.js out of the box?

Yes. UniConsent implements the standard IAB TCF, GPP, and US Privacy CMP APIs that Prebid's consent management modules discover automatically. Set cmpApi: "iab" and no vendor-specific code is required.

Which Prebid consent modules does UniConsent support?

All three: consentManagement (IAB TCF for GDPR), consentManagementGpp (IAB GPP for US state laws), and consentManagementUsp (US Privacy / CCPA).

Will the auction wait for user consent?

Yes. Prebid holds bid requests until the CMP returns a consent signal or the configured timeout elapses. With allowAuctionWithoutConsent: false, no auction runs without a valid GDPR consent signal.

Does Prebid consent work together with Google Ad Manager?

Yes. The same TC string Prebid forwards to bidders is also read by Google Publisher Tag, so Prebid demand and Google Ad Manager demand both respect the user's choices from a single UniConsent banner.

Microsoft certified CMP - UniConsent CMPIAB certified CMP - UniConsent CMPIAB TCF V2 certified CMP - UniConsent CMPIAB TCF Canada certified consent manager - UniConsent CMPGoogle-certified CMP Gold tire - UniConsent CMPGoogle-certified CMP partner
受全球5000多家出版商和营销人员的信赖
  • sej
  • football365
  • sharethrough
  • districtm
  • pf1
  • tower cast

开始使您的网站和应用符合欧盟 GDPR、美国 CPRA、加拿大 PIPEDA 等法规

注册