You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openrtb.go
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -832,8 +832,12 @@ type Regulations struct {
832
832
833
833
// Format object represents an allowed size (i.e., height and width combination) for a banner impression.
834
834
// 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.
835
836
typeFormatstruct {
836
-
Widthint`json:"w,omitempty"`// Width in device independent pixels (DIPS).
837
-
Heightint`json:"h,omitempty"`//Height in device independent pixels (DIPS).
838
-
Ext json.RawMessage`json:"ext,omitempty"`
837
+
Widthint`json:"w,omitempty"`// Width in device independent pixels (DIPS).
838
+
Heightint`json:"h,omitempty"`// Height in device independent pixels (DIPS).
839
+
WidthRatioint`json:"wratio,omitempty"`// Relative width when expressing size as a ratio.
840
+
HeightRatioint`json:"hration,omitempty"`// Relative height when expressing size as a ratio.
841
+
WidthMinint`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.
0 commit comments