Header bidding without consent signals is a compliance gap and a revenue problem: TCF-registered bidders discard bid requests that lack a valid TC string in GDPR territories. Wiring Prebid.js to a certified CMP fixes both. Here is the complete setup.
Prebid.js ships consent management modules for each framework. Include the ones your traffic needs when building Prebid:
consentManagement: IAB TCF for GDPR (EEA and UK traffic)consentManagementGpp: IAB GPP for US state privacy lawsconsentManagementUsp: US Privacy / CCPA (legacy signal)Point each module 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,
},
});
With cmpApi: "iab", Prebid discovers the CMP through the standard __tcfapi, __gpp, and __uspapi window APIs, with no vendor-specific adapter needed. UniConsent implements all three, so the same installation covers GDPR consent in Europe and opt-out signals in the US.
Bidders validate the TC string's CMP ID against the IAB Europe CMP list. A string generated by an unregistered "TCF-compatible" tool carries an invalid CMP ID and gets discarded, silently costing you demand. UniConsent is a registered CMP (ID 68), so its TC strings are accepted across the programmatic supply chain, including Google Ad Manager, which reads the same string alongside Prebid.
Set allowAuctionWithoutConsent: false and delay your first auction until the CMP reports a decision. UniConsent exposes the standard TCF event API for this - wait for tcloaded or useractioncomplete before calling pbjs.requestBids(). The exact snippet is in the Prebid integration tutorial.
pbjs.getConsentData() and inspect bid requests for gdprConsent and gppConsent fields.Prebid consent is one part of the wider publisher consent stack. The same CMP also handles Google Ad Manager and Additional Consent, Google Consent Mode v2, and mobile in-app consent.
Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
Activate Google Consent Mode UniConsent to enhance the accuracy of your Google Analytics and Google Ads conversion data.
Set up Google Consent Mode →Comienza a hacer que tu sitio web y tu aplicación cumplan con el RGPD de la UE, la CPRA de EE. UU., la PIPEDA de Canadá, etc.
RegístrateDemanda CIPA contra NFL.com: cuando el opt-out no detiene el rastreo — cómo hacer que el opt-out realmente funcione

Dominio CMP de Primera Parte: Sirva Su Banner de Consentimiento Desde Su Propio Dominio
UniConsent Es una CMP Certificada de Microsoft UET y Microsoft Clarity

Derecho de Reclamación del RGPD del Reino Unido: Cambios el 19 de Junio de 2026 y Qué Deben Hacer las Organizaciones

Microsoft Advertising Añade a Vietnam como Mercado con Consentimiento Obligatorio: Lo Que los Anunciantes Deben Hacer Antes del 30 de Junio de 2026
Seguimiento por Píxeles y CIPA: el Acuerdo de $5M de European Wax Center Muestra Por Qué Su CMP Debe Bloquear las Etiquetas Antes del Consentimiento
Comienza a hacer que tu sitio web y tu aplicación cumplan con el RGPD de la UE, la CPRA de EE. UU., la PIPEDA de Canadá, etc.
Regístrate