This library lets you serve ads to your apps from Magnite Ad Network via AdMob integration.
Here are two demo apps available to explore:
By default, both apps run with Google's sample AdMob app ID and test ad units.
To test your own integration, put your real AdMob app ID into AndroidManifest.xml
(app-compose or app-java)
and fill in productionAdUnits() with your production ad unit IDs in
MainActivity.kt
or MainActivity.java,
then build an app and use Ad inspector to make sure your integration is working correctly.
- Add dependency on AdMob-Magnite Mediation library.
dependencies {
implementation 'com.magnite.sdk:admob-mediation:1.+'
}
- Create new or edit existing Mediation Group, then click
Add custom event.
- Fill the fields
LabelandManual eCPM, then clickContinue.
- Create a mapping for each ad unit.
- Fill the fields
Mapping name,Class NameandParameter, then clickDone.
Make sure to replace strings YOUR_APP_ID and YOUR_AD_TAG with the actual App ID and Ad Tag ID from the dashboard.
Mapping name: Magnite
Class Name: com.magnite.sdk.mediation.admob.MagniteAdapter
Parameter: {"appId":"YOUR_APP_ID","adTag":"YOUR_AD_TAG"}
- Select a mapping, then click
Done.
- Make sure new ad source is appeared in list, then click
Save.






