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

## Ad Events

### JWAdDelegate

The following table contains the names of all ad properties accessible through using the subscript operator. Not all properties are available for every ad event. Therefore, be sure to test for `nil`.

<span class="and-sdk-error-ref-tabl"> <table> <thead> <tr> <th> Property </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td width="35%"> <strong>adPosition</strong> JWAdPosition </td> <td width="65%"> Position of the ad within the content </td> </tr> <tr> <td> <strong>adSystem</strong> String </td> <td> Ad system referenced inside of the VAST XML </td> </tr> <tr> <td> <strong>adTitle</strong> String </td> <td> Title of the ad </td> </tr> <tr> <td> <strong>clickThroughUrl</strong> String </td> <td> URL visited when the ad is tapped </td> </tr> <tr> <td> <strong>companions</strong> [JWAdCompanion] </td> <td> Descriptions of the companions of the ad </td> </tr> <tr> <td> <strong>creativeAdId</strong> String </td> <td> Ad ID </td> </tr> <tr> <td> <strong>creativeId</strong> String </td> <td> Creative ID </td> </tr> <tr> <td> <strong>creativetype</strong> String </td> <td> Type of ad displayed </td> </tr> <tr> <td> <strong>id</strong> String </td> <td> Descriptive name of the ad </td> </tr> <tr> <td> <strong>ima</strong> Dictionary </td> <td> Verbose description of Google IMA properties </td> </tr> <tr> <td> <strong>impression</strong> JWAdImpression </td> <td> Description of the ad impression </td> </tr> <tr> <td> <strong>linear</strong> String </td> <td> Value indicating whether the ad is linear or nonlinear <br /><br /><strong>Possible Values</strong>: <ul> <li><code>linear</code></li> <li><code>nonlinear</code></li> </ul> <strong>NOTE:</strong> Nonlinear ads are not supported in the SDK. </td> </tr> <tr> <td> <strong>metadata</strong> Dictionary </td> <td> Object containing the metadata from the ad<br /><br />The values contained within the object vary based on the ad.</td> </tr> <tr> <td> <strong>newState</strong> String </td> <td> Current state of the ad </td> </tr> <tr> <td> <strong>oldState</strong> String </td> <td> Previous state of the ad </td> </tr> <tr> <td> <strong>pauseReason</strong> JWPauseReason </td> <td> Reason the ad was paused </td> </tr> <tr> <td> <strong>placement</strong> Int </td> <td> Value sent in a bid request that identifies the location of a player </td> </tr> <tr> <td> <strong>playReason</strong> JWPlayReason </td> <td> Reason the ad began to play </td> </tr> <tr> <td> <strong>podCount</strong> Int </td> <td> Total number of ads within the ad pod </td> </tr> <tr> <td> <strong>position</strong> Double </td> <td> Current playback position in the ad creative in seconds </td> </tr> <tr> <td> <strong>schedule</strong> [JWAdBreak] </td> <td> Ad breaks within the content, in order </td> </tr> <tr> <td> <strong>sequence</strong> Int </td> <td> Index of the current ad in the ad pod </td> </tr> <tr> <td> <strong>skipOffset</strong> Double </td> <td> Number of seconds before the user is allowed to skip the ad </td> </tr> <tr> <td> <strong>tag</strong> URL </td> <td> URL of the ad tag </td> </tr> <tr> <td> <strong>timeLoading</strong> <sup>4.15.0+</sup> Double </td> <td> Number of milliseconds for the ad to load </td> </tr> <tr> <td> <strong>type</strong> String </td> <td> Type of creative displayed </td> </tr> <tr> <td> <strong>viewable</strong> Int </td> <td> Whether or not the player is currently visible <br /><br /><strong>Possible Values</strong>: <ul> <li><code>0</code>: Player ≀ 50% viewable</li> <li><code>1</code>: Player > 50% viewable</li> </ul> </td> </tr> <tr> <td> <strong>xml</strong> <sup>4.15.0+</sup> String </td> <td> The raw VAST XML string </td> </tr> </tbody> </table> </span>

<br />

<!-- Removes the automatic page-to-page navigation at the bottom of the page -->

<style> .rm-Pagination { display: none; } </style>