弃用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
有时,可以废弃 BidRequest
或 BidResponse
中的字段。
已弃用的字段最终将弃用,这意味着它们将从
并且将无法再使用。
通知期限是指从弃用到停用之间的时间。
在通知期内,更新代码以移除所有依赖项
已弃用的字段)以确保服务不中断。
已弃用的字段具有 [deprecated = true]
选项,以及以下
声明的第一行:
Deprecated. This will be removed in {MONTH} {YEAR}
您可能还会遇到带有 DEPRECATED_
前缀的已弃用字段名称,
这是标记已弃用字段的传统方式
我们会在版本
注释和
博客。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-18。
[null,null,["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eFields in BidRequest and BidResponse can be deprecated and eventually removed (sunsetted).\u003c/p\u003e\n"],["\u003cp\u003eYou'll be notified before a field is removed, giving you time to update your code.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated fields are marked with \u003ccode\u003e[deprecated = true]\u003c/code\u003e or a \u003ccode\u003eDEPRECATED_\u003c/code\u003e prefix in their description.\u003c/p\u003e\n"],["\u003cp\u003eRefer to release notes and the Ads Developer Blog for deprecation and sunset announcements.\u003c/p\u003e\n"]]],["Deprecated fields in `BidRequest` or `BidResponse` will eventually be removed. During the notification period before removal, update code to remove dependencies on these fields. Deprecated fields are marked with `[deprecated = true]` and a removal date in their description, or a `DEPRECATED_` prefix. Deprecations and sunsets are announced in release notes and the blog. Ensure continuous service by updating your code.\n"],null,["# Deprecations\n\nFields in the `BidRequest` or `BidResponse` can occasionally be deprecated.\nDeprecated fields eventually sunset, meaning they'll be removed from the\nprotocol and will no longer work.\n\nThe notification period is the amount of time between deprecation and sunset.\n**During the notification period, update your code to remove any dependencies\non deprecated fields** to ensure uninterrupted service.\n\nDeprecated fields have a `[deprecated = true]` option, and the following\nstatement in the first line of their descriptions: \n\n```\nDeprecated. This will be removed in {MONTH} {YEAR}\n```\n\nYou might also encounter deprecated field names with a `DEPRECATED_` prefix,\nwhich is the legacy way of marking deprecated fields.\n\nDeprecations and sunsets are announced in the [release\nnotes](/authorized-buyers/rtb/relnotes) and\n[blog](//ads-developers.googleblog.com/search/label/ad_exchange)."]]