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 4.0.0 for React Native

Init

Legacy – deprecated New
API IronSource.init LevelPlay.init
API IronSource.setUserID Should be as part of LevelPlayInitRequest builder
Listener InitializationListener LevelPlayInitListener
Callback onInitializationComplete onInitSuccess

Rewarded

Legacy – deprecated New (Ad Unit Level LevelPlayRewardedAd)
Listener LevelPlayRewardedVideoListener LevelPlayRewardedAdListener
Listener LevelPlayRewardedVideoManualListener LevelPlayRewardedAdListener
API setLevelPlayRewardedVideoListener setListener
API setLevelPlayRewardedVideoManualListener setListener
API loadRewardedVideo loadAd
API showRewardedVideo showAd
API isRewardedVideoAvailable isAdReady
API isRewardedVideoPlacementCapped isPlacementCapped
API getRewardedVideoPlacementInfo
API setRewardedVideoServerParams
API clearRewardedVideoServerParams
Class ConsentViewError

Interstitial

Legacy – deprecated New (Ad Unit Level LevelPlayInterstitialAd)
Listener LevelPlayInterstitialListener LevelPlayInterstitialAdListener
Callback onAdReady onAdLoaded
Callback onAdLoadFailed onAdLoadFailed
Callback onAdOpened onAdDisplayed
Callback onAdClosed onAdClosed
Callback onAdShowFailed onAdDisplayFailed
Callback onAdClicked onAdClicked
Callback onAdShowSucceeded
API loadInterstitial loadAd
API showInterstitial showAd
API isInterstitialReady isAdReady
API setLevelPlayInterstitialListener setListener
API isInterstitialPlacementCapped isPlacementCapped

Banners

Legacy – deprecated New (Ad Unit Level LevelPlayBannerAdView)
Class IronSourceBannerOptions
Class IronSourceBannerOffsetOption
Class IronSourceBannerPositionOption
Class IronSourceBannerSizeOption
Class IronSourceBannerSizeCustomOption
Listener setLevelPlayBannerListener LevelPlayBannerAdViewListener
Callback onAdLoaded onAdLoaded
Callback onAdLoadFailed onAdLoadFailed
Callback onAdClicked onAdClicked
Callback onAdScreenPresented onAdExpanded
Callback onAdScreenDismissed onAdCollapsed
Callback onAdLeftApplication onAdLeftApplication
API loadBanner loadAd
API destroyBanner destroy
API isBannerPlacementCapped

Banner Sizes

Legacy Ad Unit (new) Dimensions in dp
IronSourceBannerSize IronSourceBannerSize Width X Height
BANNER BANNER 320 x 50
LARGE LARGE 320 x 90
REACTANGLE MEDIUM_RECTANGLE 300 x 200
SMART Replaced by Adaptive Ad Size Automatically renders ads to adjust size and orientation for mobile & tablets

Settings

Legacy – deprecated New
API IronSource.setConsent LevelPlay.setConsent
API IronSource.setMetaData LevelPlay.setMetaData
API IronSource.setImpressionDataListener LevelPlay.addImpressionDataListener
API IronSource.launchTestSuite LevelPlay.launchTestSuite
API IronSource.setWaterfallConfiguration Should be replaced with ‘setBidFloor’ on LevelPlayRewardedAd, LevelPlayInterstitialAd and ‘bidFloor’ parameter passed to component LevelPlayBannerAdView
API IronSource.clearWaterfallConfiguration
API IronSource.getPluginVersion LevelPlay.getPluginVersion
API IronSource.getNativeSDKVersion LevelPlay.getNativeSDKVersion
API IronSource.validateIntegration LevelPlay.validateIntegration
API IronSource.setSegment LevelPlay.setSegment
API IronSource.setDynamicUserId LevelPlay.setDynamicUserId
API IronSource.setAdaptersDebug LevelPlay.setAdaptersDebug
API IronSource.getAdvertiserId
API IronSource.shouldTrackNetworkState
API IronSource.setClientSideCallbacks
API IronSource.getMaximalAdaptiveHeight
Class ImpressionData LevelPlayImpressionData
Class IronSourceAdError LevelPlayAdError
Class IronSourceRVPlacement
Class IronSourceContainerParams
Class AdUnit
Class IronSourceSegment LevelPlaySegment
Listener ImpressionDataListener LevelPlayImpressionDataListener

iOS Conversion Value

Legacy New
API IronSource.getConversionValue
API IronSource.loadConsentViewWithType
API IronSource.showConsentViewWithType
API IronSource.setConsentViewListener
Listener ConsentViewListener
Class ConsentViewError