Format.wratio
Relative width when the allowed size is a ratio, used for flex ads that scale with their container. With Format.hratio it forms an aspect ratio such as 16 to 9. Added in OpenRTB 2.5.
Field facts
- Path
imp.banner.format.wratio,imp.audio.companionad.format.wratio,imp.video.companionad.format.wratio- Object
- Format
- Type
- integer
- Requirement
- Optional
- Added
- OpenRTB 2.5
- Spec section
- 3.2.10
How it is used
A ratio Format pairs wratio and hratio with Format.wmin. The bid echoes the chosen ratio in Bid.wratio and Bid.hratio.
Example
Where the field sits in a payload, with everything else left out:
{
"id": "req-1",
"imp": [
{
"banner": {
"format": [
{
"wratio": 16
}
]
}
}
]
}Common mistakes
- Sending a decimal such as 1.78 in wratio. Both ratio fields are integers, so send 16 and 9.
Version history
Added in OpenRTB 2.5, and present in the latest snapshot. The table shows how each version's spec text types the field.
| Versions | Type in the spec | Required | Deprecated |
|---|---|---|---|
| 2.5 to 2.6-202606 | integer | No | No |