1. Help Center
  2. Publishers
  3. Widget Settings & Options

Applying Fixed IAB Sizes to Widgets

A guide on setting up your single panel widgets to render within IAB's recommended dimensions

Publishers now have the option for their 1x1 widget(s) to automatically render within the Interactive Advertising Bureau's (IAB) fixed ad unit sizing recommendations by adding the attribute "data-banner-size" to their widget's div. For example, if we wanted our widget to render within a 300x250 container, we'd add the following bold portion to our widget's code:

<div id="<INSERT_DIV_ID>"
data-rc-widget
data-widget-host="habitat"
data-endpoint="//trends.revcontent.com"
data-widget-id="<INSERT_WIDGET_ID>"
data-banner-size="300x250"></div>
<script type="text/javascript"
src="https://assets.revcontent.com/master/delivery.js" defer="defer"></script>


The widget would then automatically render in the following fixed 300x250 format:

IAB_300_250


The following sizes are supported:

- 120x600
- 160x600
- 240x400
- 250x250
- 250x300

- 300x50
- 300x250
- 300x600
- 300x1050
- 320x50

- 320x250
- 320x480
- 336x280
- 640x1136
- 728x90

- 720x300
- 750x1334
- 970x90
- 970x250
- 970x550
- 1080x1920