Documentation

Unity Monetization

iOS deprecated APIs

Identify deprecated Unity Ads SDK classes for iOS (Objective-C), as well as the replacement and removal versions.
Read time 2 minutesLast updated 11 hours ago

iOS deprecated classes (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
NAUse the
UnityAdsInitializationDelegate
,
UnityAdsLoadDelegate
, and
UnityAdsShowDelegate
interfaces.
4.0.0Replaced by consolidated
Initialize
API.
UnityAdsDelegateUtil
NAUse the
UnityAdsInitializationDelegate
,
UnityAdsLoadDelegate
, and
UnityAdsShowDelegate
interfaces.
4.0.0Replaced by consolidated
Initialize
API.
UADSInAppPurchaseMetaData
NANo direct replacement; however you can use the generic
MetaData
class.
4.0.0Replaced by consolidated
Initialize
API.
UnityAdsExtendedDelegate
NAUse the
UnityAdsInitializationDelegate
,
UnityAdsLoadDelegate
, and
UnityAdsShowDelegate
interfaces.
4.0.0Replaced by consolidated
Initialize
API.
initialize: (NSString *)gameIddelegate: (nullable id&#x3-c;-unity-ads-delegate>)
3.4.0Use the consolidated
Initialize
method signature.
4.0.0Replaced by consolidated
Initialize
API.
initialize: (NSString *)gameIddelegate: (nullable id&#x3-c;-unity-ads-delegate>)delegatetestMode: (BOOL)testMode
3.4.0Use the consolidated
Initialize
method signature.
4.0.0Replaced by consolidated Initialize API.
initialize: (NSString *)gameIddelegate: (nullable id&#x3-c;-unity-ads-delegate>)delegatetestMode: (BOOL)testModeenablePerPlacementLoad: (BOOL)enablePerPlacementLoad
3.4.0Use the consolidated
Initialize
method signature.
4.0.0Replaced by consolidated Initialize API.
initialize: (NSString *)gameIdtestMode: (BOOL)testModeenablePerPlacementLoad: (BOOL)enablePerPlacementLoad
3.4.0Use the consolidated
Initialize
method signature.
4.0.0Replaced by consolidated
initialize
API.
initialize: (NSString *)gameIdtestMode: (BOOL)testModeenablePerPlacementLoad: (BOOL)enablePerPlacementLoadinitializationDelegate: (nullable id&#x3-c;-unity-ads-initialization-delegate>)initializationDelegate;
3.4.0Use the consolidated
Initialize
] method signature.
4.0.0Replaced by consolidated
initialize
API.
show: (UIViewController *)viewController
3.7.0Use the updated
show
method signature.
4.0.0Introduced a
show
API with callbacks.
show: (UIViewController *)viewControllerplacementId: (NSString *)placementId
3.7.0Use the updated
show
method signature.
4.0.0Introduced a
show
API with callbacks.
show: (UIViewController *)viewControllerplacementId: (NSString *)placementIdoptions: (UADSShowOptions *)options
3.7.0Use the updated
show
method signature.
4.0.0Introduced a
Show
API with callbacks.
getDelegate
3.4.0Use the
Initialize
,
load
, and
show
methods' delegate interfaces.
4.0.0No longer required with
Load
and
Show
functionality.
setDelegate: (id&#x3-c;-unity-ads-delegate>)delegate
3.4.0Use the
Initialize
,
load
, and
show
methods' delegate interfaces.
4.0.0No longer required with
Load
and
Show
functionality.
addDelegate: (__nullable id&#x3-c;-unity-ads-delegate>)delegate
3.7.0Use the
Initialize
,
load
, and
show
methods' delegate interfaces.
4.0.0No longer required with
Load
and
Show
functionality.
removeDelegate: (id&#x3-c;-unity-ads-delegate>)delegate;
NAUse the
Initialize
,
load
, and
show
methods' delegate interfaces.
4.0.0No longer required with Load and Show functionality.
isReady
3.7.1Use the updated
load
method signature.
4.0.0Introduced a
load
API with callbacks.
isReady: (NSString *)placementId
3.7.1Use the updated
load
method signature.
4.0.0Introduced a
load
API with callbacks.
getPlacementState
NANo direct replacement.4.0.0No longer required with
Load
and
Show
functionality.
getPlacementState: (NSString *)placementId
NANo direct replacement.4.0.0No longer required with
Load
and
Show
functionality.
All of the
monetization
classes
3.4.0Use the
UnityAdvertisement.h
class.
4.0.0Legacy
Monetization
API not supported.
All of the
purchasing
classes
3.4.0No direct replacement.4.0.0Legacy
Monetization
API not supported.