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:
- Export your ad tags and paste them into the source code for your website or app.
- For Video in the Ad Exchange, configure and export your VAST ad tags for video ad units.
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
httpin 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:
Open the Ad Units List.
Do one of the following:
To export Do this A single ad tag On 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 tags Check the boxes of the corresponding ad units, and then click Export Ad Tags located on top of the screen.
The Export Ad Tag dialog appears, select the options available based on the Ad Unit type:
Ad Unit Type In this field, do this • Web
• 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.
Video • Video 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.
Click . Ad tags for the selected ad units are exported into a
ad tags export file example