mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 22:16:41 +03:00
Merge pull request #16 from prebid/do-not-omitempty-on-wh
Allow width and height in Open RTB banner object to send values equal to 0
This commit is contained in:
@@ -28,7 +28,7 @@ type Banner struct {
|
||||
// Description:
|
||||
// Exact width in device independent pixels (DIPS);
|
||||
// recommended if no format objects are specified.
|
||||
W uint64 `json:"w,omitempty"`
|
||||
W uint64 `json:"w"`
|
||||
|
||||
// Attribute:
|
||||
// h
|
||||
@@ -37,7 +37,7 @@ type Banner struct {
|
||||
// Description:
|
||||
// Exact height in device independent pixels (DIPS);
|
||||
// recommended if no format objects are specified.
|
||||
H uint64 `json:"h,omitempty"`
|
||||
H uint64 `json:"h"`
|
||||
|
||||
// Attribute:
|
||||
// wmax
|
||||
|
||||
Vendored
+20
@@ -32,6 +32,26 @@
|
||||
3
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"bidfloor": 0.5,
|
||||
"tagid": "agltb3B1Yi1pbmNyDQsSBFNpdGUY7fD0FAwa",
|
||||
"instl":1,
|
||||
"banner": {
|
||||
"w": 0,
|
||||
"h": 0,
|
||||
"pos": 2,
|
||||
"btype": [
|
||||
4
|
||||
],
|
||||
"battr": [
|
||||
14
|
||||
],
|
||||
"api": [
|
||||
3
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"app": {
|
||||
|
||||
Reference in New Issue
Block a user