Banner.topframe

Whether the slot is in the page's top frame (1) or inside an iframe (0). OpenRTB 2.0 to 2.2 gave it a default of 0; later versions state no default.

CurrentintegerOptionalSince 2.0

Field facts

Path
imp.banner.topframe, imp.audio.companionad.topframe, imp.video.companionad.topframe
Object
Banner
Type
integer
Requirement
Optional
Added
OpenRTB 2.0
Spec section
3.2.6

How it is used

Creative that expands, reads the page, or runs measurement behaves differently inside a cross-domain iframe, so rich media buyers use the flag to choose a compatible creative.

Allowed values

0, 1.

Example

Where the field sits in a payload, with everything else left out:

{
  "id": "req-1",
  "imp": [
    {
      "banner": {
        "topframe": 0
      }
    }
  ]
}

Common mistakes

  • Sending true or false; in spec JSON it is an integer flag.

Version history

Added in OpenRTB 2.0, and present in the latest snapshot. The table shows how each version's spec text types the field.

VersionsType in the specRequiredDeprecated
2.0integer, default 0 t m aNoNo
2.1 to 2.2integer, default 0NoNo
2.3 to 2.3.1integerNoNo
2.4integer iframe, where 0 = no, 1 = yes.NoNo
2.5 to 2.6-202606integerNoNo

Related fields

Other Banner fields