ドキュメント

サポート

9.0.0 API changes

Detailed list of API changes introduced in LevelPlay Unity SDK 9.0.0.
読み終わるまでの所要時間 3 分最終更新 2日前

As part of Native SDK version 9.0.0 we will remove some APIs and deprecate some of our existing listeners and callbacks. You can find the detailed list of changes below: This article summarizes the major API changes introduced in LevelPlay Unity SDK version 9.0.0. For the full migration process, see the Migrate to 9.0.0+ guide.

Key API changes in 9.0.0

  • All public-facing APIs have been refactored from
    IronSource
    to
    LevelPlay
    for clarity and consistency.
  • Deprecated APIs have been removed. See the SDK documentation for a full list of removed methods.
  • The
    LevelPlay.Init
    method has been simplified, removing ad format parameters.
  • Ad units are now created using new config classes.
  • The
    OnAdDisplayFailed
    event now provides distinct
    LevelPlayAdInfo
    and
    LevelPlayAdError
    parameters.

Migration notes

  • Upgrading from a version lower than 9.0.0 requires additional migration steps. See the Migration Guide.
  • Review and update all ad format integrations (Rewarded, Interstitial, Banner) to ensure compatibility.

APIs removed from 9.0.0 for Unity

Init

Legacy – deprecated

New

APIIronsource.initLevelPlay.Init
setUserIDShould be set as part of LevelPlayInitRequest builder
EventonInitializationCompleteOnInitSuccess

Rewarded

Legacy – deprecated

New (Ad Unit Level LevelPlayRewardedAd)

ListenerIronsourceRewardedVideoEventsLevelPlayRewardedAd
APIloadRewardedVideoLoadAd
showRewardedVideoShowAd
isRewardedVideoAvailableIsAdReady
isRewardedVideoPlacementCappedIsPlacementCapped
setRewardedVideoServerParamsLevelPlay.SetMetaData, key:”LevelPlay_Rewarded_Server_Params”
clearRewardedVideoServerParamsLevelPlay.SetMetaData, key:”LevelPlay_Rewarded_Server_Params”
EventsonAdReadyEventOnAdLoaded
onAdLoadFailedEventOnAdLoadFailed
onAdOpenedEventOnAdDisplayed
onAdClosedEventOnAdClosed
onAdShowFailedEventOnAdDisplayFailed
onAdRewardedEventOnAdRewarded
onAdClickedEventOnAdClicked
onAdShowSucceededEvent

Interstitial

Legacy – deprecated

New

ListenerIronSourceInterstitialEventsLevelPlayInterstitialAd
EventsonAdReadyEventOnAdLoaded
onAdLoadFailedEventOnAdLoadFailed
onAdOpenedEventOnAdDisplayed
onAdClosedEventOnAdClosed
onAdShowSucceededEvent
onAdShowFailedEventOnAdDisplayFailed
onAdClickedEventOnAdClicked
APILoadInterstitialLoadAd
ShowInterstitialShowAd
IsInterstitialPlacementCappedIsPlacementCapped
IsInterstitialReadyIsAdReady

Banners

Legacy – deprecated

New (Ad Unit Level LevelPlayBannerAd)

ListenerIronSourceBannerEventsLevelPlayBannerAd
EventsonAdLoadedEventOnAdLoaded
onAdLeftApplicationEventOnAdLeftApplication
onAdScreenDismissedEvent
onAdScreenPresentedEventOnAdDisplayed
onAdClickedEventOnAdClicked
onAdLoadFailedEventOnAdLoadFailed
APIIronSourceBannerLayout.createBannerLevelPlayBannerAdView(context, “adUnitId”)
loadBannerLoadAd
destroyBannerDestroyAd
displayBannerShowAd
hideBannerHideAd
IronSourceBannerPositionLevelPlayBannerPosition.TopCenter LevelPlayBannerPosition.BottomCenter
IronSourceBannerSizeLevelPlayAdSize

Banner Sizes

Legacy

Ad Unit (new)

Dimensions in dp

IronSourceBannerSizeLevelPlayAdSize(Width X Height)
BANNERBANNER320 x 50
LARGELARGE320 x 90
RECTANGLEMEDIUM_RECTANGLE300 x 250
SMARTReplaced by Adaptive Ad Size (see below)Automatically renders ads to adjust size and orientation for mobile & tablets

Settings

Legacy – deprecated

New

APIIronSource.pluginVersionLevelPlay.PluginVersion
IronSource.unityVersionLevelPlay.UnityVersion
IronSource.Agent.validateIntegrationLevelPlay.ValidateIntegration
IronSource.Agent.setDynamicUserIdLevelPlay.setDynamicUserId
IronSource.Agent.setAdaptersDebugLevelPlay.SetAdaptersDebug
IronSource.Agent.setMetaDataLevelPlay.SetMetaData
IronSource.Agent.setNetworkDataLevelPlay.setNetworkData
IronSource.Agent.SetPauseGameLevelPlay.SetPauseGame
IronSource.Agent.launchTestSuiteLevelPlay.LaunchTestSuite
IronSource.Agent.setConsentLevelPlay.SetConsent
IronSource.Agent.setSegmentLevelPlay.SetSegment
onApplicationPause— (This API was calling onPause/onResume from native. Pause/Resume is now fetched from the lifecycle.)
getAdvertiserId
shouldTrackNetworkState
getPlacementInfo
isBannerPlacementCapped
getMaximalAdaptiveHeight
getDeviceScreenWidth
ClassIronSourceSegmentLevelPlaySegment
IronSourceErrorLevelPlayAdError
IronSourceImpressionDataLevelPlayImpressionData
IronSourceConfig
IronSourcePlacement
IronSourceUtils
WaterfallConfiguration— 
EventIronSourceEvents.onImpressionDataReadyEventLevelPlay.OnImpressionDataReady (Supported from SDK 8.10.1+)
IronSourceEvents.onSdkInitializationCompletedEventLevelPlay.OnInitSuccess
onSegmentReceivedEvent
For more details, refer to the official changelog and the original KC article.