Tip #31: The banner must match the zone dimensions and type

This week’s tip is something that seems to trip up a lot of new OpenX ad server users. If you can’t seem to link a banner to a zone, this tip is for you.

OpenX will not let you link a banner to a zone unless the banner dimensions match the zone dimensions and the banner type matches the zone type.

Banner types

There are only three different types of banners in OpenX:

  • SQL / Webserver / External banners: These are all image or Flash-based banners; they simply have different storage locations1.
  • HTML banners: These are banners based on HTML and/or JavaScript code.
  • Text banners: These are banners based on plain text (that is, no HTML markup).

Which type of banner you are using will have an impact on both how the dimensions of the banner are determined, and which zone type you can link the banner to.

Banner dimensions and zone dimensions

SQL and Webserver banners are image or Flash-based banners that you upload into OpenX (which are then stored either in the OpenX database, or are stored on your local web server’s directory). As a result of the fact that OpenX is able to inspect the image or Flash file when it is uploaded, OpenX can automatically determine the banner’s dimensions.

However, External banners cannot be inspected by OpenX; similarly, although HTML banners are stored in the OpenX database, OpenX cannot determine what the dimensions of your HTML/JavaScript code are. As a result, you need to specify the dimensions of all External and HTML banners in OpenX when you create them2.

Setting the banner dimensions for an HTML banner.

Setting the banner dimensions for an HTML banner.

Zones also have dimensions. Whenever you create a Banner, Button or Rectangle zone, an Interstitial or Floating DHTML zone, a Popup zone or an Email/Newsletter zone, you can select from a set of standard IAB banner dimensions, or you can enter your own dimensions.

Setting the zone dimensions.

Setting the zone dimensions.

In order to link a banner to a zone, the banner dimensions must be exactly the same as the zone dimensions. OpenX will not allow you to link a banner to a zone if the dimensions are not equal. This is a feature of OpenX, which means not only will OpenX ensure that you do not accidentally link, for example, a skyscraper banner into a rectangle zone (which would look rather odd on your site!), but also means that you can set up campaigns containing multiple banners of many different sizes, and then simply link the campaign to zones, and OpenX will figure out which banners to put into which zones.

The exception to the rule of banner and zone dimensions

Text banners and text zones are the exception to the rule, as they have no dimensions. Text banners and zones are used for displaying plain text banners, which are intended to be inserted into normal paragraphs of text on your site. As a result, there is no need for dimensions to be set at either the banner or zone level — the zone and banner will simply be as “high” and as “wide” as the text itself.

Wildcard zones dimensions

Sometimes, you know better than OpenX, and you need to link banners of different dimensions to a single zone. OpenX will let you do this, by using an asterisk as a “wildcard” when setting up a zone with custom dimensions.

You can use the wildcard for the height, the width, or both, depending on your needs.

A zone with "wildcard" width, and fixed height.

A zone with "wildcard" width, and fixed height.

Banner type and zone type

To link a banner to a zone, the banner type must be suitable for the zone type (and vice versa). The following table lists all of OpenX’s banner and zone types, according to which types can be linked to each other.

Banner Type Zone Type
  • SQL Banner
  • Webserver Banner
  • External Banner
  • HTML Banner
  • Banner, Button or Rectangle Zone
  • Interstitial or Floating DHTML Zone
  • Popup Zone
  • Email/Newsletter Zone
  • Text Banner
  • Text Zone

As you can see, text banners and text zones are the odd types out; all other banner/zone combination are fine.

Happy banner/zone linking!

  1. That is, SQL banners store the image or Flash-file data in the OpenX database; Webserver banners store the image or Flash data in a file in a directory on your web server; and External banners are where the image or Flash file is stored on some external system, and you simply provide the URL that the file can be loaded from. []
  2. OpenX 2.8 now, fortunately, requires these fields be filled in, so that you do not forget. However, older versions of OpenX did not have this requirement — so if you forgot to fill in the banner’s dimensions, if would often take frustrating minutes to figure out why it was not possible to link the banner to the zone. []

News: OpenX Market usability event

The OpenX team are looking for users to participate in a usability event for upcoming features for the OpenX Market. If you’re in the LA area, and you’d like to take part, details are on the OpenX forum.

News: Update to Tip #29 and OpenX 2.8.2

A minor update to Tip #29: Understand companion positioning has just been posted, as it looks like there will be an update to the way that companion positioning will work in OpenX 2.8.2. See the post for details.

Meanwhile, speaking of OpenX 2.8.2, it would see that there is now only one remaining unresolved issue in OpenX’s issue tracking system for this release! Hopefully, that means that OpenX 2.8.2 is just around the corner…