Link Search Menu Expand Document


Ad Tags


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.


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

Export ad tags to a text file, including those for web and video 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 a single or multiple ad tags from the Ad Units List screen. In addition, you can also export an ad tag from the Ad Unit Details screen.

To export ad tags:

  1. Open the Ad Units List.

  2. Do one of the following:

    To exportDo this
    A single ad tagOn the row of the corresponding ad unit, open the Actions list , and then select Export Ad Tag.

    Note: You can also export an ad tag from the Ad Unit Details screen by clicking Export Ad Tag located on top.

    Multiple ad tagsCheck the boxes of the corresponding ad units, and then click Export Ad Tags located on top of the screen.

  3. The Export Ad Tag dialog appears, select the options available based on the Ad Unit type:

    Ad Unit TypeIn this field, do this
    • Web
    • Mobile
    Type of Snippet: Select between Asynchronous or Synchronous.
    Ad Unit Sizes: Select ad unit sizes from the list, as needed.
    Add a custom ad unit size: This option allows you to add a custom ad unit size. Enter the width and height, and then click Add.

    VideoVideo Type: Select between Web or Mobile.
    Ad Server: Select an Ad Server from the list.

    Consider the following about ad unit sizes:

    • When exporting ad tags from multiple ad units of the same type (for example, two or more Web or Mobile ad units), you cannot add a custom ad unit size. You can later add sizes by editing the exported snippets.

    • If the ad unit was previously created, the sizes from the Legacy Section are pasted by default. You can later edit the sizes in the generated snippet.

    • If it’s a new ad unit which does not include any ad sizes, the snippet includes a comment describing to enter sizes.

  4. Click . Ad tags for the selected ad units are exported into a .txt file.

    ad tags export file example