Skip to content

Commit 6f64bb3

Browse files
authored
Merge pull request bsm#91 from jrobin42/master
Format ratio added
2 parents 1edcd29 + 7b78264 commit 6f64bb3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

openrtb.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,12 @@ type Regulations struct {
832832

833833
// Format object represents an allowed size (i.e., height and width combination) for a banner impression.
834834
// These are typically used in an array for an impression where multiple sizes are permitted.
835+
// It is recommended that either the w/h pair or the wratio/hratio/wmin set (i.e., for Flex Ads) be specified.
835836
type Format struct {
836-
Width int `json:"w,omitempty"` // Width in device independent pixels (DIPS).
837-
Height int `json:"h,omitempty"` //Height in device independent pixels (DIPS).
838-
Ext json.RawMessage `json:"ext,omitempty"`
837+
Width int `json:"w,omitempty"` // Width in device independent pixels (DIPS).
838+
Height int `json:"h,omitempty"` // Height in device independent pixels (DIPS).
839+
WidthRatio int `json:"wratio,omitempty"` // Relative width when expressing size as a ratio.
840+
HeightRatio int `json:"hration,omitempty"` // Relative height when expressing size as a ratio.
841+
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.
842+
Ext json.RawMessage `json:"ext,omitempty"`
839843
}

0 commit comments

Comments
 (0)