9.0.0 API Changes
As part of Native SDK version 9.0.0 we will remove some APIs and deprecated some of our existing listeners and callbacks. You can find the detailed list of changes below:
APIs removed from 9.0.0 for Unity
Init
| Legacy – deprecated | New | |
| API | Ironsource.init | LevelPlay.Init |
| setUserID | Should be set as part of LevelPlayInitRequest builder | |
| Event | onInitializationComplete | OnInitSuccess |
Rewarded
| Legacy – deprecated | New (Ad Unit Level LevelPlayRewardedAd) | |
| Listener | IronsourceRewardedVideoEvents | LevelPlayRewardedAd |
| API | loadRewardedVideo | LoadAd |
| showRewardedVideo | ShowAd | |
| isRewardedVideoAvailable | IsAdReady | |
| isRewardedVideoPlacementCapped | IsPlacementCapped | |
| setRewardedVideoServerParams | LevelPlay.SetMetaData, key:”LevelPlay_Rewarded_Server_Params” | |
| clearRewardedVideoServerParams | LevelPlay.SetMetaData, key:”LevelPlay_Rewarded_Server_Params” | |
| Events | onAdReadyEvent | OnAdLoaded |
| onAdLoadFailedEvent | OnAdLoadFailed | |
| onAdOpenedEvent | OnAdDisplayed | |
| onAdClosedEvent | OnAdClosed | |
| onAdShowFailedEvent | OnAdDisplayFailed | |
| onAdRewardedEvent | OnAdRewarded | |
| onAdClickedEvent | OnAdClicked | |
| onAdShowSucceededEvent | — |
Interstitial
| Legacy – deprecated | New (Ad Unit Level LevelPlayInterstitialAd) | |
|---|---|---|
| Listener | IronSourceInterstitialEvents | LevelPlayInterstitialAd |
| Events | onAdReadyEvent | OnAdLoaded |
| onAdLoadFailedEvent | OnAdLoadFailed | |
| onAdOpenedEvent | OnAdDisplayed | |
| onAdClosedEvent | OnAdClosed | |
| onAdShowSucceededEvent | — | |
| onAdShowFailedEvent | OnAdDisplayFailed | |
| onAdClickedEvent | OnAdClicked | |
| API | LoadInterstitial | LoadAd |
| ShowInterstitial | ShowAd | |
| IsInterstitialPlacementCapped | IsPlacementCapped | |
| IsInterstitialReady | IsAdReady |
Banners
| Legacy – deprecated | New (Ad Unit LevelLevelPlayBannerAd) | |
| Listener | IronSourceBannerEvents | LevelPlayBannerAd |
| Events | onAdLoadedEvent | OnAdLoaded |
| onAdLeftApplicationEvent | OnAdLeftApplication | |
| onAdScreenDismissedEvent | — | |
| onAdScreenPresentedEvent | OnAdDisplayed | |
| onAdClickedEvent | OnAdClicked | |
| onAdLoadFailedEvent | OnAdLoadFailed | |
| API | IronSourceBannerLayout.createBanner | LevelPlayBannerAdView(context, “adUnitId”) |
| loadBanner | LoadAd | |
| destroyBanner | DestroyAd | |
| displayBanner | ShowAd | |
| hideBanner | HideAd | |
| IronSourceBannerPosition | LevelPlayBannerPosition.TopCenter LevelPlayBannerPosition.BottomCenter |
|
| IronSourceBannerSize | LevelPlayAdSize |
Banner Sizes
| Legacy |
Ad Unit (new) |
Dimensions in dp |
| IronSourceBannerSize | LevelPlayAdSize | (Width X Height) |
| BANNER | BANNER | 320 x 50 |
| LARGE | LARGE | 320 x 90 |
| RECTANGLE | MEDIUM_RECTANGLE | 300 x 250 |
| SMART | Replaced by Adaptive Ad Size (see below) | Automatically renders ads to adjust size and orientation for mobile & tablets |
Settings
| Legacy – deprecated | New | |
| API | IronSource.pluginVersion | LevelPlay.PluginVersion |
| IronSource.unityVersion | LevelPlay.UnityVersion | |
| IronSource.Agent.validateIntegration | LevelPlay.ValidateIntegration | |
| IronSource.Agent.setDynamicUserId | LevelPlay.setDynamicUserId | |
| IronSource.Agent.setAdaptersDebug | LevelPlay.SetAdaptersDebug | |
| IronSource.Agent.setMetaData | LevelPlay.SetMetaData | |
| IronSource.Agent.setNetworkData | LevelPlay.setNetworkData | |
| IronSource.Agent.SetPauseGame | LevelPlay.SetPauseGame | |
| IronSource.Agent.launchTestSuite | LevelPlay.LaunchTestSuite | |
| IronSource.Agent.setConsent | LevelPlay.SetConsent | |
| IronSource.Agent.setSegment | LevelPlay.SetSegment | |
| onApplicationPause | — (This API was calling onPause/onResume from native. Pause/Resume is now fetched from the lifecycle.) | |
| getAdvertiserId | — | |
| shouldTrackNetworkState | — | |
| getPlacementInfo | — | |
| isBannerPlacementCapped | — | |
| getMaximalAdaptiveHeight | — | |
| getDeviceScreenWidth | — | |
| Class | IronSourceSegment | LevelPlaySegment |
| IronSourceError | LevelPlayAdError | |
| IronSourceImpressionData | LevelPlayImpressionData | |
| IronSourceConfig | — | |
| IronSourcePlacement | — | |
| IronSourceUtils | — | |
| WaterfallConfiguration | — | |
| Event | IronSourceEvents.onImpressionDataReadyEvent | LevelPlay.OnImpressionDataReady (Supported from SDK 8.10.1+) |
| IronSourceEvents.onSdkInitializationCompletedEvent | LevelPlay.OnInitSuccess | |
| onSegmentReceivedEvent | — |