iOS deprecated APIs
Identify deprecated Unity Ads SDK classes for iOS, as well as the replacement and removal versions.
Read time 4 minutesLast updated a day ago
iOS deprecated classes
The following API classes are deprecated or obsolete for the iOS SDK for the Unity Ads SDK version 4.19.0.Initialization
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | Replaced by the typed |
| 4.19.0 | Set | 5.0.0 | The boolean debug-mode toggle is replaced by a 4-level |
| 4.19.0 | | 5.0.0 | Replaced by the builder-pattern initialization API with a completion block instead of a delegate. |
| 4.19.0 | Pass a completion block | 5.0.0 | Delegate-based initialization callback replaced by completion blocks for simpler, inline error handling. |
Interstitial ads
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | Class method on UnityAds replaced by an instance method on the loaded ad object, with the result delivered via a completion block. |
| 4.19.0 | Pass a completion block to | 5.0.0 | Delegate callbacks replaced by completion blocks in the instance-based ad loading API. |
| 4.19.0 | | 5.0.0 | Mutable property replaced by an immutable builder-pattern configuration. |
| 4.19.0 | No replacement — object ID is now managed internally by the SDK | 5.0.0 | Manual correlation IDs are no longer required; the SDK handles ad instance tracking internally. |
| 4.19.0 | | 5.0.0 | Class method on UnityAds replaced by an instance method on the loaded ad object. |
| 4.19.0 | | 5.0.0 | Generic show delegate replaced by an ad-type-specific delegate that passes the ad instance rather than a placement ID string. |
| 4.19.0 | No replacement — object ID is now managed internally by the SDK | 5.0.0 | Manual correlation IDs are no longer required; the SDK handles ad instance tracking internally. |
| 4.19.0 | | 5.0.0 | Mutable options object replaced by an immutable builder-pattern show configuration. |
Rewarded ads
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | Class method on UnityAds replaced by an instance method on the loaded ad object, with the result delivered via a completion block. |
| 4.19.0 | Pass a completion block to | 5.0.0 | Delegate callbacks replaced by completion blocks in the instance-based ad loading API. |
| 4.19.0 | | 5.0.0 | Mutable property replaced by an immutable builder-pattern configuration. |
| 4.19.0 | No replacement — object ID is now managed internally by the SDK | 5.0.0 | Manual correlation IDs are no longer required; the SDK handles ad instance tracking internally. |
| 4.19.0 | | 5.0.0 | Class method on UnityAds replaced by an instance method on the loaded ad object. |
| 4.19.0 | | 5.0.0 | Generic show delegate replaced by a rewarded-specific delegate with a dedicated reward callback. |
| 4.19.0 | No replacement — object ID is now managed internally by the SDK | 5.0.0 | Manual correlation IDs are no longer required; the SDK handles ad instance tracking internally. |
| 4.19.0 | | 5.0.0 | The metadata-based server-side reward verification ID is replaced by a typed |
| 4.19.0 | | 5.0.0 | Constants renamed as part of the unified |
| 4.19.0 | | 5.0.0 | Enum type renamed for consistency with the new instance-based ad API. |
Banner ads
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | Direct view class replaced by an ad instance object whose view is accessed via a property, consistent with the new ad object model. |
| 4.19.0 | | 5.0.0 | View-level delegate replaced by an ad-object delegate. The load result moves into the |
| 4.19.0 | Load result is now delivered via the | 5.0.0 | Load notification moved out of the delegate and into the load completion block, matching the new interstitial and rewarded loading pattern. |
| 4.19.0 | No replacement | 5.0.0 | Callback removed with no equivalent in the new |
| 4.19.0 | | 5.0.0 | Constructor + separate load method replaced by a unified static load with a builder configuration and a completion block, matching the new interstitial and rewarded loading pattern. |
| 4.19.0 | | 5.0.0 | Banner-specific mutable load options object replaced by an immutable builder-pattern configuration. |
| 4.19.0 | | 5.0.0 | Mutable property replaced by an immutable builder-pattern configuration. |
| 4.19.0 | No replacement — object ID is now managed internally by the SDK | 5.0.0 | Manual correlation IDs are no longer required; the SDK handles ad instance tracking internally. |
Token collection (bidding)
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | The no-arg getter, the completion-only getter, and the legacy |
| 4.19.0 | | 5.0.0 | Configuration object replaced by a builder, enabling mediation info and banner size to be included in a consistent pattern. |
| 4.19.0 | | 5.0.0 | Enum renamed for namespace consistency with the new |
Privacy
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | | 5.0.0 | String key-value privacy metadata replaced by a typed static method. |
| 4.19.0 | | 5.0.0 | String key-value privacy metadata replaced by a typed static method with explicit opt-out semantics. |
| 4.19.0 | | 5.0.0 | Privacy mode string replaced by an explicit boolean API for non-behavioral/contextual ad control. |
Error handling
API to be removed | Deprecated in version | What to use instead | Removed in version | Deprecation reason |
|---|---|---|---|---|
| 4.19.0 | Unified | 5.0.0 | Separate per-operation error enums replaced by a unified error protocol with standardized numeric codes. |
| 4.19.0 | Unified | 5.0.0 | Separate per-operation error enums replaced by a unified error protocol with standardized numeric codes. |
| 4.19.0 | Unified | 5.0.0 | Separate per-operation error enums replaced by a unified error protocol with standardized numeric codes. |
| 4.19.0 | Unified | 5.0.0 | Banner-specific error enum replaced by the same unified error protocol used across all ad types. |