forked from bsm/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bsm#63 from mxmCherry/feature/use-json-rawmessage
switch back custom Extension to json.RawMessage
- Loading branch information
Showing
32 changed files
with
375 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
package openrtb | ||
|
||
import "encoding/json" | ||
|
||
// The "banner" object must be included directly in the impression object if the impression offered | ||
// for auction is display or rich media, or it may be optionally embedded in the video object to | ||
// describe the companion banners available for the linear or non-linear video ad. The banner | ||
// object may include a unique identifier; this can be useful if these IDs can be leveraged in the | ||
// VAST response to dictate placement of the companion creatives when multiple companion ad | ||
// opportunities of the same size are available on a page. | ||
type Banner struct { | ||
W int `json:"w,omitempty"` // Width | ||
H int `json:"h,omitempty"` // Height | ||
Format []Format `json:"format,omitempty"` //Array of format objects representing the banner sizes permitted. | ||
WMax int `json:"wmax,omitempty"` // Width maximum DEPRECATED | ||
HMax int `json:"hmax,omitempty"` // Height maximum DEPRECATED | ||
WMin int `json:"wmin,omitempty"` // Width minimum DEPRECATED | ||
HMin int `json:"hmin,omitempty"` // Height minimum DEPRECATED | ||
ID string `json:"id,omitempty"` // A unique identifier | ||
BType []int `json:"btype,omitempty"` // Blocked creative types | ||
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes | ||
Pos int `json:"pos,omitempty"` // Ad Position | ||
Mimes []string `json:"mimes,omitempty"` // Whitelist of content MIME types supported | ||
TopFrame int `json:"topframe,omitempty"` // Default: 0 ("1": Delivered in top frame, "0": Elsewhere) | ||
ExpDir []int `json:"expdir,omitempty"` // Specify properties for an expandable ad | ||
Api []int `json:"api,omitempty"` // List of supported API frameworks | ||
Ext Extension `json:"ext,omitempty"` | ||
W int `json:"w,omitempty"` // Width | ||
H int `json:"h,omitempty"` // Height | ||
Format []Format `json:"format,omitempty"` //Array of format objects representing the banner sizes permitted. | ||
WMax int `json:"wmax,omitempty"` // Width maximum DEPRECATED | ||
HMax int `json:"hmax,omitempty"` // Height maximum DEPRECATED | ||
WMin int `json:"wmin,omitempty"` // Width minimum DEPRECATED | ||
HMin int `json:"hmin,omitempty"` // Height minimum DEPRECATED | ||
ID string `json:"id,omitempty"` // A unique identifier | ||
BType []int `json:"btype,omitempty"` // Blocked creative types | ||
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes | ||
Pos int `json:"pos,omitempty"` // Ad Position | ||
Mimes []string `json:"mimes,omitempty"` // Whitelist of content MIME types supported | ||
TopFrame int `json:"topframe,omitempty"` // Default: 0 ("1": Delivered in top frame, "0": Elsewhere) | ||
ExpDir []int `json:"expdir,omitempty"` // Specify properties for an expandable ad | ||
Api []int `json:"api,omitempty"` // List of supported API frameworks | ||
Ext json.RawMessage `json:"ext,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.