Skip to content

Commit 40a9cf6

Browse files
[#PPS-3931] regs gdpr nilability, instl test
1 parent 0b0d95d commit 40a9cf6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

bidrequest_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func TestBidRequest(t *testing.T) {
2222
ID: "1",
2323
Secure: 1,
2424
Banner: &Banner{W: 300, H: 250, Pos: AdPosAboveFold, BAttr: []int{CreativeAttributeUserInitiated}},
25+
Instl: 0,
2526
},
2627
},
2728
Site: &Site{

openrtb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ type UID struct {
774774
// regulations for the United States Children's Online Privacy Protection Act ("COPPA").
775775
type Regulations struct {
776776
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.
777-
GDPR int `json:"gdpr"` // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown.
777+
GDPR *int `json:"gdpr,omitempty"` // Flag that indicates whether the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown.
778778
USPrivacy string `json:"us_privacy,omitempty"` // Communicates signals regarding consumer privacy under US privacy regulation.
779779
Ext RegExtension `json:"ext,omitempty"`
780780
}

testdata/breq.banner.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{
77
"id": "1",
88
"secure": 1,
9+
"instl": 0,
910
"banner": {
1011
"w": 300,
1112
"h": 250,

0 commit comments

Comments
 (0)