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:
Max Cherry
2017-10-19 21:14:13 +03:00
committed by GitHub
2 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -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
+20
View File
@@ -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": {