Skip to content

Commit a2c9f0e

Browse files
Fix field name
1 parent 699d4c4 commit a2c9f0e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

bid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Bid struct {
3131
CreativeID string `json:"crid,omitempty"` // Creative ID for reporting content issues or defects. This could also be used as a reference to a creative ID that is posted with an exchange.
3232
Cat []string `json:"cat,omitempty"` // IAB content categories of the creative. Refer to List 5.1
3333
Attr []int `json:"attr,omitempty"` // Array of creative attributes.
34-
DealID string `json:"deal_id,omitempty"` // DealID extension of private marketplace deals
34+
DealID string `json:"dealid,omitempty"` // DealID extension of private marketplace deals
3535
H int `json:"h,omitempty"` // Height of the ad in pixels.
3636
W int `json:"w,omitempty"` // Width of the ad in pixels.
3737
Ext json.RawMessage `json:"ext,omitempty"`

bid_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var _ = Describe("Bid", func() {
2525
IURL: "http://ads.com/112770_1386565997.jpeg",
2626
CampaignID: "52a5516d29e435137c6f6e74",
2727
CreativeID: "52a5516d29e435137c6f6e74_1386565997",
28+
DealID: "example_deal",
2829
Attr: []int{},
2930
}))
3031
})

testdata/bid.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"iurl": "http://ads.com/112770_1386565997.jpeg",
1212
"cid": "52a5516d29e435137c6f6e74",
1313
"crid": "52a5516d29e435137c6f6e74_1386565997",
14+
"dealid": "example_deal",
1415
"attr": []
1516
}

0 commit comments

Comments
 (0)