Interactive Media Ads (IMA)
IMA SDKs simplify the process of incorporating multimedia advertisements into your web pages and applications. They can request ads from any VAST-compliant ad server and handle the playback of the ads within the app. By using the IMA client-side SDKs, you retain control of the content video playback while the SDK manages the ad playback. The ads are displayed in a separate video player that is overlaid on top of the app's content video player.
Attribute | Type | Required | Description |
---|---|---|---|
enabled | boolean | Yes | Enable the plugin (Defaults to false if no value is given.) |
adTagUrl | string | false | Ad Tag URL of the advertisement. (VAST, VPAID, VMAP, SIMID) |
liveStreamPrefetchSeconds | double | No | Inform IMA about when the ad should start loading before the ad shows in live streams. |
Swift
let imaConfig = IMAPluginConfiguration(config: ["client": ["adTagUrl": "YOUR_AD_TAG_URL"]],
playerViewController: self)