-
public final class FormatThis 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.
-
-
Constructor Summary
Constructors Constructor Description Format()
-
Method Summary
Modifier and Type Method Description final IntegergetWidth()Width in device independent pixels (DIPS). final UnitsetWidth(@SerializedName(value = w) Integer width)Width in device independent pixels (DIPS). final IntegergetHeight()Height in device independent pixels (DIPS). final UnitsetHeight(@SerializedName(value = h) Integer height)Height in device independent pixels (DIPS). final IntegergetWidthRatio()Relative width when expressing size as a ratio. final UnitsetWidthRatio(@SerializedName(value = wratio) Integer widthRatio)Relative width when expressing size as a ratio. final IntegergetHeightRatio()Relative height when expressing size as a ratio. final UnitsetHeightRatio(@SerializedName(value = hratio) Integer heightRatio)Relative height when expressing size as a ratio. final IntegergetWidthMin()The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio. final UnitsetWidthMin(@SerializedName(value = wmin) Integer widthMin)The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio. final ObjectgetExtension()Placeholder for exchange-specific extensions to OpenRTB. final UnitsetExtension(@SerializedName(value = ext) Object extension)Placeholder for exchange-specific extensions to OpenRTB. -
-
Method Detail
-
setWidth
final Unit setWidth(@SerializedName(value = w) Integer width)
Width in device independent pixels (DIPS).
-
setHeight
final Unit setHeight(@SerializedName(value = h) Integer height)
Height in device independent pixels (DIPS).
-
getWidthRatio
final Integer getWidthRatio()
Relative width when expressing size as a ratio.
-
setWidthRatio
final Unit setWidthRatio(@SerializedName(value = wratio) Integer widthRatio)
Relative width when expressing size as a ratio.
-
getHeightRatio
final Integer getHeightRatio()
Relative height when expressing size as a ratio.
-
setHeightRatio
final Unit setHeightRatio(@SerializedName(value = hratio) Integer heightRatio)
Relative height when expressing size as a ratio.
-
getWidthMin
final Integer getWidthMin()
The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio.
-
setWidthMin
final Unit setWidthMin(@SerializedName(value = wmin) Integer widthMin)
The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio.
-
getExtension
final Object getExtension()
Placeholder for exchange-specific extensions to OpenRTB.
-
setExtension
final Unit setExtension(@SerializedName(value = ext) Object extension)
Placeholder for exchange-specific extensions to OpenRTB.
-
-
-
-