文档

Development

User Acquisition

Monetization

工业

Unity Ads Monetization

SDK 4.20.0

受支持
​

Android API reference

Unity Ads Monetization

SDK 4.20.0

受支持
​

此页面不支持所选语言。
Android developer guides
​
​
Android developer guides
  • Android SDK integration guide
  • Unity Ads privacy guide
  • Unity Ads SDK troubleshooting guide
  • Android developer API references
  • Android deprecated APIs
  1. Unity Ads SDK Android developer monetization
  2. Unity Ads SDK integration guide for Android developers
  3. Android developer API references

Unity Ads API deprecation policy

Review Unity's guidelines on API deprecation. Check timelines, notifications, and exceptions for SDK changes.
阅读时间1 分钟
最后更新于 1 个月前

重要
These guidelines are effective beginning with the release of Unity Ads SDK 4.0.0.
While you're encouraged to use the best API set that meets your needs at the time of development, the recommended best practice is for all developers to update to the latest SDK version as frequently as possible.
To ensure that Unity Ads delivers an optimized and consistent development experience, it must continue to evolve and extend the SDK and its API classes. As we adapt to platform and market changes, API classes become obsolete and need to be replaced by more effective versions.
In the event that Unity Ads intends to remove an API class, or alter it in a manner that breaks the previously supported functionality, Unity will endeavor to:
  • Label the API as deprecated, note the deprecation in the release notes, and (if applicable) update documentation and samples to provide a preferred alternative in the next major or minor release.
  • Remove the deprecated API in a future major release; and
  • Use reasonable efforts to provide no less than three (3) months' notice of the removal of a deprecated API by using a Deprecation Notice (refer to the section on Notifications).

Exceptions

Exceptions to the aforementioned deprecation guidelines are cases where:
  • Unity Ads must remove an API as a result of a change in applicable law or its rights under contract;
  • Continuing to provide the functionality could create a security, compliance, data privacy or other regulatory risk, or otherwise expose Unity and/or its third party partners and clients to any risk of liability or harm (as determined by Unity in it sole discretion); or
  • Continuing to provide the functionality could create a substantial economic or technical burden to Unity or to its third party partners and clients (including by overburdening, or threatening the integrity, performance or availability of, any underlying Unity services), as determined by Unity in its sole discretion.

Notifications

If an API becomes obsolete, Unity Ads will use reasonable efforts to provide a Deprecation Notice by using one or more of the following:
  • Developer communication(s) to the Unity Ads Monetization dashboard. The post will contain the Deprecation Notice, the alternative API (if available), and the target SDK version for removal;
  • Official technical documentation updates containing the alternative API (if available); or
  • Updates to the SDK changelog in a section that contains links to more detailed information about which classes are being deprecated, applicable replacement classes, and the projected end of life date.

What to expect

Wherever possible, API classes and their supported functionality are maintained in a manner that is compatible with earlier versions. If it is necessary to change something in a way that is not backwards compatible, Unity Ads creates a new resource, media type, or version, and the old resource or media type is maintained in accordance with the API deprecation policy.
Unity Ads will provide the following information for all announced API deprecations:
  • The API to be removed
  • The SDK version that it was deprecated
  • The API to use instead for similar functionality
  • The SDK version that it was (or will be) removed
  • The reason for deprecating it

Changes to these Guidelines

These guidelines are subject to change without notice, and Unity reserves the right to modify its API deprecation process in its sole discretion and at any time.

Definitions and concepts

Deprecation

Deprecated API classes can still be used but are no longer supported moving forward and will be removed in a future release.

Deprecation Notice

Provides advanced notification that an API class will be replaced in an upcoming SDK release. This is a good time for developers to upgrade their code.

Semantic Versioning

The Unity Ads SDK follows semantic versioning standards. API classes will only be removed in major version releases.

API backwards compatibility

Unity tries to provide backward compatibility of all public APIs documented in the API reference. Developers must use the supported APIs listed in the API reference to ensure compatibility.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Exceptions

    • Notifications

    • What to expect

    • Changes to these Guidelines

    • Definitions and concepts

      • Deprecation

      • Deprecation Notice

      • Semantic Versioning

      • API backwards compatibility


报告此页面的问题
​
​