Files
openrtb/adcom1/display_format.go
T
Max Cherry 1efc868257 types: actually, better stick to int64 instead of just int
At least, it's more convenient to use with time std pkg.
Also, API implementations better never rely on machine-dependent types.
2018-12-30 12:42:52 +02:00

64 lines
1.8 KiB
Go

package adcom1
import "encoding/json"
// DisplayFormat object represents an allowed set of parameters for a banner display ad and often appears as an array when multiple sizes are permitted.
type DisplayFormat struct {
// Attribute:
// w
// Type:
// integer
// Definition:
// Absolute width of the creative in units specified by DisplayPlacement.unit.
// Note that mixing absolute and relative sizes is not recommended.
W int64 `json:"w,omitempty"`
// Attribute:
// h
// Type:
// integer
// Definition:
// Absolute height of the creative in units specified by DisplayPlacement.unit.
// Note that mixing absolute and relative sizes is not recommended.
H int64 `json:"h,omitempty"`
// Attribute:
// wratio
// Type:
// integer
// Definition:
// Relative width of the creative when expressing size as a ratio.
// Note that mixing absolute and relative sizes is not recommended.
// Dev note:
// This is kept as `int8` because ratio values are expected to be quite small (like 16:9).
WRatio int8 `json:"wratio,omitempty"`
// Attribute:
// hratio
// Type:
// integer
// Definition:
// Relative height of the creative when expressing size as a ratio.
// Note that mixing absolute and relative sizes is not recommended.
// Dev note:
// This is kept as `int8` because ratio values are expected to be quite small (like 16:9).
HRatio int8 `json:"hratio,omitempty"`
// Attribute:
// expdir
// Type:
// integer array
// Definition:
// Directions in which the creative is permitted to expand.
// Refer to List: Expandable Directions.
ExpDir []ExpandableDirection `json:"expdir,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}