Unity (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() | NA | Use the updated | 4.0.0 | No longer required with |
IsReady(string placementId) | NA | Use the updated | 4.0.0 | No longer required with |
AddListener(IUnityAdsListener listener) | NA | Use the | 4.0.0 | Improved callbacks for |
RemoveListener(IUnityAdsListener listener) | NA | Use the | 4.0.0 | Improved callbacks for |
GetPlacementState() | NA | No direct replacement. | 4.0.0 | Improved callbacks for |
GetPlacementState(string placementId) | NA | No direct replacement. | 4.0.0 | No longer required with |
IUnityAdsListener | NA | Use the | 4.0.0 | Improved callbacks for |
Show() | NA | Use the (alex://grow-ads-monetization-unity-sdk-unity-api#show)Show(string placementId) method signature to specify an Ad Unity ID. | 4.0.0 | Updated |
ShowOptions.resultCallback | 3.1.0 | Use the | 4.0.0 | Updated |
Android (Java)
The following API classes are deprecated or obsolete for the Android SDK:
API to be removed | Deprecated in version | What to use instead | Removed in version | Depreciation reason |
---|---|---|---|---|
initialize(final Activity activity, final String gameId, final IUnityAdsListener listener) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final IUnityAdsInitializationListener initializationListener) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final IUnityAdsListener listener, final boolean testMode) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final boolean testMode) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final boolean testMode, final IUnityAdsInitializationListener initializationListener) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final IUnityAdsListener listener, final boolean testMode, final boolean enablePerPlacementLoad) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final boolean testMode, final boolean enablePerPlacementLoad) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Activity activity, final String gameId, final boolean testMode, final boolean enablePerPlacementLoad, final IUnityAdsInitializationListener initializationListener) | 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Context context, final String gameId, final boolean testMode, final boolean enablePerPlacementLoad) | NA | Use the consolidated | 4.0.0 | Replaced by consolidated |
initialize(final Context context, final String gameId, final boolean testMode, final boolean enablePerPlacementLoad, final IUnityAdsInitializationListener initializationListener) | NA | Use the consolidated | 4.0.0 | Replaced by consolidated |
setListener(IUnityAdsListener listener) | 3.4.0 | Use the | 4.0.0 | Improved callbacks for |
getListener() | 3.4.0 | Use the | 4.0.0 | Improved callbacks for |
addListener(IUnityAdsListener listener) | NA | Use the | 4.0.0 | Improved callbacks for |
removeListener(IUnityAdsListener listener) | NA | Use the | 4.0.0 | Improved callbacks for |
isReady() | 3.7.1 | Use the updated | 4.0.0 | Introduced a |
isReady(String placementId) | 3.7.1 | Use the updated | 4.0.0 | Introduced a |
getPlacementState() | NA | No direct replacement. | 4.0.0 | No longer required with |
show(final Activity activity) | 3.7.0 | Use the updated | 4.0.0 | Introduced a |
IUnityAdsListener | NA | Use the | 4.0.0 | Improved callbacks for |
IUnityAdsExtendedListener | NA | Use the | 4.0.0 | Improved callbacks for |
com.unity3d.services.monetization | NA | Use the | 4.0.0 | Legacy |
com.unity3d.services.purchasing | NA | No direct replacement. | 4.0.0 | Legacy |
iOS (Objective-C)
The following API classes are deprecated or obsolete for the iOS SDK:
API to be removed | Deprecated in version | What to use instead | Removed in version | Depreciation reason |
---|---|---|---|---|
UnityAdsDelegate | NA | Use the | 4.0.0 | Replaced by consolidated |
UnityAdsDelegateUtil | NA | Use the | 4.0.0 | Replaced by consolidated |
UADSInAppPurchaseMetaData | NA | No direct replacement; however you can use the generic | 4.0.0 | Replaced by consolidated |
UnityAdsExtendedDelegate | NA | Use the | 4.0.0 | Replaced by consolidated |
| 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
| 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated Initialize API. |
| 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated Initialize API. |
| 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
| 3.4.0 | Use the consolidated | 4.0.0 | Replaced by consolidated |
show: (UIViewController *)viewController | 3.7.0 | Use the updated | 4.0.0 | Introduced a |
show: (UIViewController *)viewController placementId: (NSString *)placementId | 3.7.0 | Use the updated | 4.0.0 | Introduced a |
show: (UIViewController *)viewController placementId: (NSString *)placementId options: (UADSShowOptions *)options | 3.7.0 | Use the updated | 4.0.0 | Introduced a |
getDelegate | 3.4.0 | Use the | 4.0.0 | No longer required with |
setDelegate: (id-c;-unity-ads-delegate>)delegate | 3.4.0 | Use the | 4.0.0 | No longer required with |
addDelegate: (__nullable id-c;-unity-ads-delegate>)delegate | 3.7.0 | Use the | 4.0.0 | No longer required with |
removeDelegate: (id-c;-unity-ads-delegate>)delegate; | NA | Use the | 4.0.0 | No longer required with Load and Show functionality. |
isReady | 3.7.1 | Use the updated | 4.0.0 | Introduced a |
isReady: (NSString *)placementId | 3.7.1 | Use the updated | 4.0.0 | Introduced a |
getPlacementState | NA | No direct replacement. | 4.0.0 | No longer required with |
getPlacementState: (NSString *)placementId | NA | No direct replacement. | 4.0.0 | No longer required with |
All of the | 3.4.0 | Use the | 4.0.0 | Legacy |
All of the | 3.4.0 | No direct replacement. | 4.0.0 | Legacy |