Reducing Latency

The key to reducing latency in your IMA-enabled app is to do as much IMA-related set up as early as possible. You can do all of the following in your app as early as you like before playing ads:

  • Define your content playhead tracker
  • Create your AdDisplayContainer
  • Create your ImaSdkFactory
  • Create your AdsLoader
  • Create your AdsManager
  • Request ads
  • Obtain your AdsManager instance and register event handlers

Doing all of the above will initialize the IMA SDK and request and parse your ads response all before your user even clicks play on your video. When you're ready to play the ads, call AdsManager.init() and wait for the LOADED event to play ads.

Send feedback about...

IMA SDK for Android
Need help? Visit our support page.