该对象表示 banner 展示所允许的一种尺寸(即高宽组合)或一组弹性广告(Flex Ad)参数。它们通常以数组形式使用,以允许多种尺寸。建议指定 w/h 对或 wratio/hratio/wmin 组合(即用于 Flex Ads)二者之一。译稿校对中ENThis 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.
| Attribute | Type | Description |
|---|---|---|
| w | integer | 宽度,以设备无关像素(Device Independent Pixels,DIPS)为单位。译稿校对中ENWidth in device independent pixels (DIPS). |
| h | integer | 高度,以设备无关像素(DIPS)为单位。译稿校对中ENHeight in device independent pixels (DIPS). |
| wratio | integer | 以比例方式表达尺寸时的相对宽度。译稿校对中ENRelative width when expressing size as a ratio. |
| hratio | integer | 以比例方式表达尺寸时的相对高度。译稿校对中ENRelative height when expressing size as a ratio. |
| wmin | integer | 当尺寸以比例方式表达时,广告将被展示的最小宽度,以设备无关像素(DIPS)为单位。译稿校对中ENThe minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio. |
| ext | object | 供交易平台(exchange)对 OpenRTB 进行专属扩展(exchange-specific extensions)的占位对象。译稿校对中ENPlaceholder for exchange-specific extensions to OpenRTB. |
译注
译者注Format:Banner 的子对象,表示 banner 展示所允许的一种尺寸(宽高组合)或一组弹性广告(Flex Ad)参数;业内文档一般保留英文对象名 Format。通常以数组形式使用,以允许多种尺寸并存。译稿校对中
DIPS:设备无关像素(Device Independent Pixels),与物理像素相对:Android 的 dp、iOS 的 pt 均属同一概念。与物理像素的换算依赖设备像素比(参见 Device.pxratio)。译稿校对中
w/h vs wratio/hratio/wmin:两组表达方式二选一——w/h 对表达固定尺寸;wratio/hratio/wmin 组合表达按比例伸缩的弹性尺寸(Flex Ads)。规范建议只指定其一,混用会造成尺寸语义歧义。译稿校对中
Flex Ads:弹性广告,指创意随容器宽高比伸缩适配的尺寸表达方式;wmin 用于约束最小展示宽度,防止创意在小屏上被过度压缩影响可读性与点击体验。译稿校对中
字段描述已与 2.6 官方 draft 对账;2.5 独有字段来自第三方 Go 实现源(Apache 2.0),官方 PDF 兜底校对 · 初稿校对中