Zones are the spaces on your website that are used for displaying ads. A zone could be a single space on a specific page, or a space on multiple pages that shows the same collection of banners. Zones are part of a website, so you must create a website before you can define its zones.
When you link banners and campaigns to zones, OpenX creates tags you can copy into your website to start serving ads.
To add a zone, go to Inventory > Zones and click Add new zone in the Actions box in the top right-hand corner of the screen. You will now be in the Add new zone screen:

To add a zone:
Once you're done click Save Changes to view the main Zones screen.
In the Advanced tab of the Zones page you are able to set the following properties:

Sometimes a zone cannot display an ad because it is not linked to any active banners, or because delivery limitations prevent it from doing so. To ensure that a blank zone is not displayed you can create a chain of zones. When it is not possible to display a banner for a chained zone then a banner from another zone can be used to replace it.This is why zone chaining can also be used as an effective method of prioritising your campaigns.
You have two options when initiating zone chaining:
Note: Only zones from the same publisher are available in the dropdown, unless you made zones for another publisher public.
You can place a cap (limit) on the number of times a visitor sees an ad in a particular zone. You can cap zones in two ways:
Once you are happy with your selections, click Save Changes and you will be taken to the Linked Banners tab.
The Zones > Linked Banners allows you to control which banners you would like to link to a particular zone:

The first dropdown gives you two choices:
The second dropdown allows you to choose from the advertisers that have banners compatible with this zone in their campaign. Once you have made your selection further dropdowns appear listing the relevant campaigns and individual banners. To finalize your choice click the arrow to the right of the final dropdown:

The linked banner and its parent campaign/advertiser will then be listed at the bottom of the page.
The Probability tab lists all banners currently considered for delivery in a zone:

Note: To change the probability of delivering a banner change the priority settings in the Campaign page or alter the weight of the banner in the Banner page.
The Zones > Invocation Code tab is where ad tags are generated. These tags are then pasted into HTML pages which invoke (call) OpenX to deliver ads. The types of tage available depend on the type of zone you have defined. The tag types (listed in order of popularity) are:
Note: Hosted doesn't allow for Local Mode or XML-RPC tags. Users wishing to use them should switch to the downloadable version of OpenX.
Depending on the zone and banner(s) you are currently working with, the dropdown menu will contain combinations from the list above (unless you are generating a No Cookie Image Tag, in which case only the Bannercode will display):

When you select the tag type, you can set various optional parameters in the Tag settings section of the page which change the bannercode for your zone. These parameters vary depending on the type of zone and the type of zone tag you use. The following table describes these parameters and which tags use them.
Note: If a tag is not available in the dropdown menu it is possible that the system administrator has disabled this tag type for the server. Contact your administrator for more information.
| Parameter | Description | Used by which tag types? |
|---|---|---|
| Target frame | This value sets the HTML TARGET attribute in the bannercode. The Default option opens the target page in a new browser tab, or you can change it to open in a new window or in the same window. | All |
| Source | Enter a source value if you want to limit banner delivery based on source, such as 'music' or 'construction'. See also: Banner delivery limitations. | All |
| Support 3rd party server clicktracking | Use this setting to track clicks in OpenX for ads served on an external ad server. See also: the 3rd Party Click Tracking white paper. |
All |
| Insert cache-busting code | JavaScript tags automatically insert a random number into the invocation code to ensure that an earlier banner is not delivered from the browser cache. With all other tags, to avoid ad caching, you must enter this manually into the tag and tick Yes. | All |
| Include comments | Removing comments from the bannercode reduces the amount of code in your web pages. However, before you remove comments review them carefully as they contain important information about the code. After you have set and reviewed the comments for all optional parameters you can then tick No to remove them. | All |
| Show text below banner | Tick Yes if you want to display text below a banner. Enter this text in the Banners page. | JavaScript, local mode, XML-RPC |
| Don't show the banner again on the same page. | Tick Yes if you do not want to show the banner again on this page view. | JavaScript, local mode, XML-RPC |
| Don't show a banner from the same campaign again on the same page. | Tick Yes if you do not want to show any other banner from this campaign on this page view. | JavaScript, local mode, XML-RPC |
| Store the banner inside a variable so it can be used in a template | This option enables you to use local mode to display banners in site templates. If you tick No and use a site template, the banner will display before the rest of the page loads. | Local Mode |
| Host language | PHP must be running on the remote host. | XML-RPC |
| Use HTTPS to contact XML-RPC Server | Tick Yes if you want to connect to a secure server using HTTPS. | XML-RPC |
| XML-RPC timeout (seconds) | Set the number of seconds to wait for a response from the server. | XML-RPC |
| Refresh after | To automatically refresh a banner, specify the number of seconds between each reload. After each refresh, a new banner from your zone is displayed. | iFrame |
| Resize iframe to banner dimensions | This option is only available if your website and OpenX are on the same top level domain. In this case, it is possible to show banners of different sizes in a zone and the iFrame will resize to fit. Note: Enabling this option may cause security alerts in modern browsers. |
iFrame |
| Make the iFrame transparent | This option works only with Internet Explorer 5.5 or higher. | iFrame |
| Include Netscape 4 compatible iLayer | Because the Netscape 4 iLayer does not work well with tables, do not place the banner in a table cell if you are using this option. | iFrame |
| Include code to track Google AdSense clicks | Tick No if you do not want to track these clicks. | iFrame |
OpenX supports a wide range of zone types. When you create a zone you must select which type you want. This selection affects the types of zone invocation tags you can create to place in your web pages. Here we will discuss zone types and the tags they support.
A zone can be one of the following types: