Files
openrtb/openrtb2/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

61 lines
1.4 KiB
Go

package openrtb2
import "encoding/json"
// 3.2.10 Object: Format
//
// This object represents an allowed size (i.e., height and width combination) or Flex Ad parameters for a banner impression.
// These are typically used in an array where multiple sizes are permitted.
// It is recommended that either the w/h pair or the wratio/hratio/wmin set (i.e., for Flex Ads) be specified.
type Format struct {
// Attribute:
// w
// Type:
// integer
// Description:
// Width in device independent pixels (DIPS).
W int64 `json:"w,omitempty"`
// Attribute:
// h
// Type:
// integer
// Description:
// Height in device independent pixels (DIPS).
H int64 `json:"h,omitempty"`
// Attribute:
// wratio
// Type:
// integer
// Description:
// Relative width when expressing size as a ratio
WRatio int64 `json:"wratio,omitempty"`
// Attribute:
// hratio
// Type:
// Integer
// Description:
// Relative height when expressing size as a ratio.
HRatio int64 `json:"hratio,omitempty"`
// Attribute:
// wmin
// Type:
// integer
// Description:
// The minimum width in device independent pixels (DIPS) at
// which the ad will be displayed the size is expressed as a ratio.
WMin int64 `json:"wmin,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}