diff --git a/banner.go b/banner.go index f93932a..df93c5d 100644 --- a/banner.go +++ b/banner.go @@ -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 diff --git a/testdata/bid-request-mobile.json b/testdata/bid-request-mobile.json index 898d7bd..725fe35 100644 --- a/testdata/bid-request-mobile.json +++ b/testdata/bid-request-mobile.json @@ -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": {