自
2025 年 9 月 8 日起,每个新订单项都需要声明是否会投放欧盟 (EU) 政治广告。Display & Video 360 API 和未提供声明的 SDF 上传操作将会失败。如需详细了解如何更新集成以进行此声明,请参阅我们的
弃用页面。
TimeUnit
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
TIME_UNIT_UNSPECIFIED |
此版本中未指定时间单位值或时间单位值未知。 |
TIME_UNIT_LIFETIME |
频次上限将应用于订单项的整个生命周期。 |
TIME_UNIT_MONTHS |
频次上限将应用于几个月的时间。 |
TIME_UNIT_WEEKS |
频次上限将应用于数周的时间。 |
TIME_UNIT_DAYS |
频次上限将应用于特定天数。 |
TIME_UNIT_HOURS |
频次上限将应用于一段时间。 |
TIME_UNIT_MINUTES |
频次上限将应用于几分钟的时间。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eTIME_UNIT\u003c/code\u003e enums specify the time frame over which a frequency cap is applied, limiting the number of times an ad is shown.\u003c/p\u003e\n"],["\u003cp\u003eOptions include applying the cap over a lifetime, or within specific durations like months, weeks, days, hours, or minutes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTIME_UNIT_UNSPECIFIED\u003c/code\u003e is used if the time unit is not known or defined.\u003c/p\u003e\n"]]],["The provided content outlines different time units for applying frequency caps. These units include `TIME_UNIT_UNSPECIFIED` for unknown values, `TIME_UNIT_LIFETIME` for the entire line item duration, `TIME_UNIT_MONTHS` for monthly caps, `TIME_UNIT_WEEKS` for weekly caps, `TIME_UNIT_DAYS` for daily caps, `TIME_UNIT_HOURS` for hourly caps, and `TIME_UNIT_MINUTES` for minute-based caps. Each time unit determines the duration over which the frequency cap is enforced.\n"],null,["# TimeUnit\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\nPossible time units.\n\n| Enums ||\n|-------------------------|-------------------------------------------------------------------------------------------------------|\n| `TIME_UNIT_UNSPECIFIED` | Time unit value is not specified or is unknown in this version. |\n| `TIME_UNIT_LIFETIME` | The frequency cap will be applied to the whole life time of the line item. | This item is deprecated! |\n| `TIME_UNIT_MONTHS` | The frequency cap will be applied to a number of months. |\n| `TIME_UNIT_WEEKS` | The frequency cap will be applied to a number of weeks. |\n| `TIME_UNIT_DAYS` | The frequency cap will be applied to a number of days. |\n| `TIME_UNIT_HOURS` | The frequency cap will be applied to a number of hours. |\n| `TIME_UNIT_MINUTES` | The frequency cap will be applied to a number of minutes. |"]]