prebid-server
prebid-server copied to clipboard
Set the GPC extension
The IAB has defined a new ORTB extension to carry the GPC flag. https://github.com/InteractiveAdvertisingBureau/openrtb/pull/99/files
Prebid Server needs to support this:
- If the incoming request already contains
regs.ext.gpc
, use that. - Otherwise, if there's an HTTP header for
Sec-GPC
with a value of "1" or 1, set regs.ext.gpc to "1". - Since PBS is already copying the header through, leave that functionality. The value will be available in both places. Someday we might be able to stop copying the header location once everyone's reading from ORTB.