<img src="https://img.shields.io/badge/iOS-V4-009727?logo=apple" style="float:left"/><br />

Ad tag macros are supported in the iOS SDK. Many VAST servers use tag variables to optimize fill and provide more information on how ads are being viewed. JWP supports a number of variables that can be added to your VAST tag URL. Once an ad call is made by JWP, the variables will be replaced accordingly.

ο»Ώ

JWP supports [additional ad tag targeting macros](πŸ”—ο»Ώ) for the HTML5 web player and OTT Apps.

<br /> <hr />

## VAST

### General

MacroDescription
**\__domain__**Domain name on which the player is embedded
**\__page-url__**File path of the video
**\__player-height__**Height of the video player<br /><br />Default: 100%
**\__player-width__**Width of the video player<br /><br />Default: 100%
**\__random-number__**Cache-buster to prevent caching of the VAST response
**\__timestamp__**Current time of the user's device

<br />

### Content

MacroDescription
**\__item-description__**Short description of the currently playing video<sup><strong>1</strong></sup>
**\__item-duration__**(Mid-roll, post-roll ads) Duration in seconds of the currently playing video<sup><strong>1</strong></sup>
**\__item-file__**File URL of the currently playing video
**\__item-mediaid__**Custom media ID of the currently playing video<sup><strong>1</strong></sup>
**\__item-title__**Title of the currently playing video<sup><strong>1</strong></sup>

<sup><strong>1</strong></sup> Must be specified inside the playlist

<br /> <hr />

## Google IMA

For Google IMA, the following ad targeting macros are supported:

  • All ad targeting macros listed in the previous VAST section

  • All ad tag variables supported by Google Ad Manager (GAM)

  • Targeting variables added by the Google IMA SDK

As shown in the following example, users of GAM will however need to make minor alterations from the VAST examples above such as changing Google's description_url macro to `description_url=__page-url__`.

ο»Ώ

See the <a href="https://support.google.com/dfp_premium/answer/2376981?hl=en" target="_blank">IMA SDK Documentation</a> for more info.

<br />