Documentation

Unity Monetization

Unity deprecated APIs

Identify deprecated Unity Ads SDK classes for Unity (C#), as well as the replacement and removal versions.
Read time 1 minuteLast updated 10 hours ago

Unity deprecated classes (C#)

The following API classes are deprecated or obsolete for the Unity SDK:

API to be removed

Deprecated in version

What to use instead

Removed in version

Depreciation reason

IsReady()
NAUse the updated
Load
method signature to access load callbacks.
4.0.0No longer required with
Load
and
Show
functionality.
IsReady(string placementId)
NAUse the updated
Load
method signature to access load callbacks.
4.0.0No longer required with
Load
and
Show
functionality.
AddListener(IUnityAdsListener listener)
NAUse the
Initialize
,
Load
, and
Show
methods' listeners.
4.0.0Improved callbacks for
Load
and
Show
APIs.
RemoveListener(IUnityAdsListener listener)
NAUse the
Initialize
,
Load
, and
Show
methods' listeners.
4.0.0Improved callbacks for
Load
and
Show
APIs.
GetPlacementState()
NANo direct replacement.4.0.0Improved callbacks for
Load
and
Show
APIs.
GetPlacementState(string placementId)
NANo direct replacement.4.0.0No longer required with
Load
and
Show
functionality.
IUnityAdsListener
NAUse the
IUnityAdsInitializationListener
,
IUnityAdsLoadListener
and
IUnityAdsShowListener
interfaces.
4.0.0Improved callbacks for
Load
and
Show
APIs.
Show()
NAUse the
Show(string placementId)
method signature to specify a placement ID.
4.0.0Updated
Load
and
Show
functionality.
ShowOptions.resultCallback
3.1.0Use the
IUnityAdsShowListener
interface callbacks.
4.0.0Updated
Load
and
Show
functionality.