Magnite and the Magnite logo are trademarks of Magnite, Inc. Use of these marks is subject to Magnite’s trademark policy. The usage of the product is governed under Magnite Source‑Available License (Polyform‑style, Licensed Users Only) detailed in LICENSE.md.txt
To note, this is a sample app provided solely for the purpose of demonstrating an integration of the MagniteSDK into a publisher app. The code here should NOT be used for any other purpose.
- app-compose - contains a demo project with Kotlin 2.0, Flows and Jetpack Compose.
- app-java - contains a demo project with Java, LiveData and XML layout.
- Interstitial
- Rewarded Video
- Banner (320x50)
- Mrec (300x250)
- Native
dependencies {
// noinspection GradleDynamicVersion
implementation 'com.magnite.sdk:ads-sdk:1.+'
}dependencies {
// noinspection GradleDynamicVersion
implementation("com.magnite.sdk:ads-sdk:1.+")
}In the examples below make sure to use your own App ID.
Kotlin
MagniteSDK.initParams(applicationContext, "YOUR_APP_ID")
.setCallback { /* ready to request ads */ }
.init()Java
MagniteSDK.initParams(applicationContext, "YOUR_APP_ID")
.setCallback(new Runnable() {
public void run () {
// ready to request ads
}
})
.init();