How do I pass GDPR consent in an OpenRTB bid request?

Answer

Set regs.gdpr to 1 when the request is subject to GDPR and put the TCF consent string in user.consent. Both are first-class fields in OpenRTB 2.6; on 2.5 and earlier the same signals travel as regs.ext.gdpr and user.ext.consent. regs.gdpr is an integer flag (0 = no, 1 = yes, omitted = unknown), and user.consent carries the IAB Transparency and Consent Framework string. Sending a consent string without the gdpr flag, or the flag without the string, is a common integration bug worth validating for.

Fields in this answer

FieldTypeSinceStatus in 2.6
regs.gdprinteger2.6-202204Current
user.consentstring2.6-202204Current

Go deeper

More questions on privacy, identity, supply chain, and versions

All 93 questions are listed in the OpenRTB FAQ.