LevelPlay / IronSource
Integration
- Integrate the LevelPlay Android SDK into your project.
- Initialize the Magify SDK.
- Pass the Magify
clientIdas the user ID when building the LevelPlay init request:
val clientId = magify.clientId
val initRequest = LevelPlayInitRequest.Builder("{YourAppKey}")
.withUserId(clientId)
.build()
LevelPlay.init(this, initRequest, object : LevelPlayInitListener {
override fun onInitSuccess(configuration: LevelPlayConfiguration) {
// Create ad objects and load ads
}
override fun onInitFailed(error: LevelPlayInitError) {
// Recommended to initialize again
}
})
The user ID is supplied as part of initialization, so all LevelPlay mediation and ad events are tied to the Magify identity. It must be set at init time and cannot be changed afterward.