-
Notifications
You must be signed in to change notification settings - Fork 121
/
banner.go
29 lines (27 loc) · 2.15 KB
/
banner.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package openrtb
import "encoding/json"
// 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 {
Width int `json:"w,omitempty"` // Width
Height int `json:"h,omitempty"` // Height
Formats []Format `json:"format,omitempty"` // Array of format objects representing the banner sizes permitted.
WidthMax int `json:"wmax,omitempty"` // Width maximum DEPRECATED
HeightMax int `json:"hmax,omitempty"` // Height maximum DEPRECATED
WidthMin int `json:"wmin,omitempty"` // Width minimum DEPRECATED
HeightMin int `json:"hmin,omitempty"` // Height minimum DEPRECATED
ID string `json:"id,omitempty"` // A unique identifier
BlockedTypes []BannerType `json:"btype,omitempty"` // Blocked banner types
BlockedAttrs []CreativeAttribute `json:"battr,omitempty"` // Blocked creative attributes
Position AdPosition `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)
ExpDirs []ExpDir `json:"expdir,omitempty"` // Specify properties for an expandable ad
APIs []APIFramework `json:"api,omitempty"` // List of supported API frameworks
VCM int `json:"vcm,omitempty"` // Represents the relationship with video. 0 = concurrent, 1 = end-card
Ext json.RawMessage `json:"ext,omitempty"`
}