From 9f4b153edeedec8604407f4082a7262a7fb1b315 Mon Sep 17 00:00:00 2001 From: Cody Lanier <5515905+codenaugh@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:22:16 -0800 Subject: [PATCH 1/2] Add OpenRTB 2.6 Regulation fields --- openrtb.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openrtb.go b/openrtb.go index da9d50b..4555443 100644 --- a/openrtb.go +++ b/openrtb.go @@ -831,8 +831,10 @@ type Segment struct { // coppa flag signals whether or not the request falls under the United States Federal Trade Commission's // regulations for the United States Children's Online Privacy Protection Act ("COPPA"). type Regulations struct { - COPPA int `json:"coppa,omitempty"` // Flag indicating if this request is subject to the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes. - Ext json.RawMessage `json:"ext,omitempty"` + COPPA int `json:"coppa,omitempty"` // Flag indicating if this request is subject to the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes. + GDPR int `json:"gdpr,omitempty"` // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown. + USPrivacy string `json:"us_privacy"` // Communicates signals regarding consumer privacy under US privacy regulation. + Ext json.RawMessage `json:"ext,omitempty"` } // Format object represents an allowed size (i.e., height and width combination) for a banner impression. From 9d2f6c817292510681c31a81dcb7f06c1369be63 Mon Sep 17 00:00:00 2001 From: Cody Lanier <5515905+codenaugh@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:18:07 -0800 Subject: [PATCH 2/2] Update openrtb.go --- openrtb.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openrtb.go b/openrtb.go index 4555443..330de38 100644 --- a/openrtb.go +++ b/openrtb.go @@ -831,9 +831,9 @@ type Segment struct { // coppa flag signals whether or not the request falls under the United States Federal Trade Commission's // regulations for the United States Children's Online Privacy Protection Act ("COPPA"). type Regulations struct { - COPPA int `json:"coppa,omitempty"` // Flag indicating if this request is subject to the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes. - GDPR int `json:"gdpr,omitempty"` // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown. - USPrivacy string `json:"us_privacy"` // Communicates signals regarding consumer privacy under US privacy regulation. + COPPA int `json:"coppa,omitempty"` // Flag indicating if this request is subject to the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes. + GDPR int `json:"gdpr,omitempty"` // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown. + USPrivacy string `json:"us_privacy,omitempty"` // Communicates signals regarding consumer privacy under US privacy regulation. Ext json.RawMessage `json:"ext,omitempty"` }