Stay organized with collections
Save and categorize content based on your preferences.
The key to reducing latency in your IMA-enabled app is to do as much
IMA-related setup as early as possible. Do the following in your app before
playing ads:
Define a content playhead tracker.
Create an IMAAdsLoader. If you have an existing
IMAAdsLoader instance, re-use it to reduce latency and ensure
that features like frequency capping work properly.
Create an IMAAdDisplayContainer.
Create the IMAAdsRequest.
Request ads.
Instantiate an IMAAdsManager instance.
Create your IMAAdsRenderingSettings.
These steps initialize the IMA SDK, request ads, and parse the ad
response—all before the user even clicks play on your video.
When you're ready to play the ads, initialize the IMAAdsManager via
IMAAdsManager:initializeWithAdsRenderingSettings and call
start.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-21 UTC."],[[["To minimize latency in IMA-enabled apps, perform IMA setup tasks like defining a playhead tracker, creating an `IMAAdsLoader`, `IMAAdDisplayContainer`, and `IMAAdsRequest`, and requesting ads before the user initiates playback."],["By completing these steps in advance, the IMA SDK is initialized, ads are requested, and the ad response is parsed, reducing delays when the user starts the video."],["Reuse existing `IMAAdsLoader` instances to further reduce latency and ensure optimal functionality of features like frequency capping."],["When ready for ad playback, initialize the `IMAAdsManager` and start it to seamlessly integrate ads into the user experience."]]],[]]