Skip to content

Commit

Permalink
Format ratio added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeanne ROBIN committed Sep 16, 2022
1 parent 1edcd29 commit 7b78264
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openrtb.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,12 @@ type Regulations struct {

// Format object represents an allowed size (i.e., height and width combination) for a banner impression.
// These are typically used in an array for an impression 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 {
Width int `json:"w,omitempty"` // Width in device independent pixels (DIPS).
Height int `json:"h,omitempty"` //Height in device independent pixels (DIPS).
Ext json.RawMessage `json:"ext,omitempty"`
Width int `json:"w,omitempty"` // Width in device independent pixels (DIPS).
Height int `json:"h,omitempty"` // Height in device independent pixels (DIPS).
WidthRatio int `json:"wratio,omitempty"` // Relative width when expressing size as a ratio.
HeightRatio int `json:"hration,omitempty"` // Relative height when expressing size as a ratio.
WidthMin int `json:"wmin,omitempty"` // The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio.
Ext json.RawMessage `json:"ext,omitempty"`
}

0 comments on commit 7b78264

Please sign in to comment.