Skip to content

MagniteEngineering/android-sdk-sample

Repository files navigation

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.

Magnite Ads SDK Demo

Project structure

Ad formats

  • Interstitial
  • Rewarded Video
  • Banner (320x50)
  • Mrec (300x250)
  • Native

Gradle dependency

dependencies {
    // noinspection GradleDynamicVersion
    implementation 'com.magnite.sdk:ads-sdk:1.+'
}
dependencies {
    // noinspection GradleDynamicVersion
    implementation("com.magnite.sdk:ads-sdk:1.+")
}

SDK initialization

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();

About

Magnite's Android SDK Sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •