Logo

Application collectors

Google IMA Ad Framework

For the Android Collector with Media3 Media Player

The Google IMA Ad Framework Extension is a configuration option for the Android Collector by Datazoom when it is configured with the Media3 Media Player to make the following additional data points automatically collectable in real time.

Integration Instructions

Maven Central

The Datazoom Media3 IMA Adapter enables seamless tracking of ad playback events from Media3 IMA and sends them to our data collection platform. This library simplifies integration by offering a straightforward API to observe and forward ad events to Datazoom.

📦 Dependency

Add the following to your build.gradle.kts or build.gradle:

Kotlin DSL

implementation("io.datazoom.sdk:ima:{latest-version}")

Groovy DSL

implementation 'io.datazoom.sdk:ima:{latest-version}'

🚀 Getting Started

1. Set up your ExoPlayer and Context

val player = ExoPlayer.Builder(context).build()
val playerContext = Datazoom.createContext(player)

2. Hook into IMA Ads using ImaAdsLoader and observe ad events

Import the helper extension:

import io.datazoom.sdk.ima.sendAdEvent

Set up your IMA ads loader and attach the ad event listener:

val adsLoader = ImaAdsLoader.Builder(context)
    .setAdEventListener { adEvent ->
        playerContext.sendAdEvent(adEvent)
    }
    .build()

3. Attach adsLoader to your player and ad view group as usual

These are sent in real time to power your Datazoom analytics pipeline.

🧩 Requirements

  • Android app using Media3 ExoPlayer and IMA SDK
  • Datazoom configuration integrated in your app

📬 Support

Need help integrating or have questions?

📧 Email: support@datazoom.io
🌐 Website: https://help.datazoom.io