Link Search Menu Expand Document

PDF

Ad Tags

Publishers

Last updated on July 20, 2018


An ad tag is a small piece of code that includes parameters describing the ad space where you want to display ads.

App video example: When your app requests an ad, the ad tag for a specific demand source will be called based on your mediation setup to return a video ad.

Web example: When a user visits a webpage, ad tags direct their browser to call the ad server, which replies with the selected ads in an HTML delivery response, which the user’s browser renders.

After you set up ad units for your app or website, you need to retrieve and implement the ad tags so that ads can be served to your ad space. Depending on the ad unit type, this means you need to do one of the following:

To expedite these tasks and save time, OpenX allows you to export multiple ad tags at once.

NOTE

You can also customize the ad requests that OpenX uses to serve ads. For example, if your ad space uses SSL/TLS, specify https instead of http in your ad tag’s URLs.


Exporting Ad Tags

Last updated on March 30, 2016

Export ad tags to a text file, including those for web and email ad units, and ad request URLs for video and mobile application ad units, when available. This way, you can distribute multiple ad tags to publishers at once, so that they can tag their site without having to open each ad unit to retrieve ad tags individually. You can export ad tags for one or more sites in the View Publisher screen, or you can export ad tags for one or more ad units in the view site screen.

  • In the sites list in the view publisher screen, select the check boxes for the sites that you want to export ad tags for, click Actions, and then click Export Tags. OpenX exports all ad tags for the selected sites into a text file, which you can download and distribute as necessary.

  • In the Ad Units list in the view site screen, check the boxes for the ad units that you want to export ad tags for, click Actions and then click Export Tags. OpenX exports all ad tags for the selected ad units into a text file, which you can download and distribute, as necessary.

When exporting ad tags, OpenX uses the following naming conventions for the file:

  • If the file contains multiple ad tags for a publisher: {instance name}-{publisher name}-tags.txt
  • If the file contains multiple ad tags for a site: {instance name}-{publisher name}-{site name}-tags.txt
  • If the file contains a single ad tag: {instance}-{publisher}-{site}-{ad unit name}-tags.txt

For example, a text file for exported ad tags may look like the following:

<img src="../../../assets/images/inventory-export-tags-sample.jpg" width="750"/>

Getting an Ad Tag for an Ad Unit

Last updated on August 12, 2016

Before OpenX Ad Server can start serving ads to the ad units that you set up, you need to copy and paste the ad tag into the source code for your webpage or mobile webpage. The format and structure varies for different ad tags.

To retrieve an ad tag:

  1. Open the view ad unit screen of the ad unit for which you want to retrieve the ad tag.

  2. Copy the code located in the field.

  3. Paste the ad tag into the source code for your webpage or mobile webpage.