IMA Media3 v1.3.0 SDK Integration Document
This procedure describes the MediaMelon SDK(with Google IMA) Integration with a Media3 Android . This is a sample integration done with the sample application from the Google IMA.
Prerequisites:
Step 1: Set up the build environment
dependencies {
.
.
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.24.0'
implementation 'androidx.media3:media3-exoplayer:1.3.0'
implementation 'com.github.MediamelonSDK:mm-sdk-media3-ima-android:1.0.3'
.
.
}Step 2: Import the required MediaMelon SDK Classes:
Step 2.1: Add the below imports to:
Step 2.2: Add the below imports to:
Step 2.3: Add the below imports to:
Step 3: Integrate MediaMelon SDK
Step 3.1: Add the following code to:
Step 3.2: Add the following code to:
Variable
Description
Step 3.3: Add the following code to:
Step 4: AD Event callbacks from the SDK.
Last updated