自
2025 年 9 月 8 日起,每个新订单项都需要声明是否会投放欧盟 (EU) 政治广告。Display & Video 360 API 和未提供声明的 SDF 上传操作将会失败。如需详细了解如何更新集成以进行此声明,请参阅我们的
弃用页面。
使用限制
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用限制可保护 Google 的基础架构免受自动流程以不当方式使用 Display & Video 360 API 所造成的影响。它们可确保一个开发者的行为所造成的负面影响不会波及更大范围的开发者群体。
API 请求配额限制
Display & Video 360 API 使用两种类型的限制:
- 总配额限制,所有相关请求都会计入其中。
- 写入配额限制,向写入方法发出的所有相关请求都会计入此配额。写入方法定义为用于修改资源的方法,例如
create
、patch
、delete
或 bulkEdit
。请注意,某些方法会比其他方法消耗更多写入配额。
如果您的项目超出其中任何一项限制,可能会出现节流。
项目级配额限制
所有 Display & Video 360 API 资源和方法均需遵循下列默认配额限制:
- 每个项目每分钟的总请求数:
1500
- 每个项目每分钟的写入请求数:
700
针对广告客户的请求配额限制
在请求网址中指定广告客户 ID 的方法会计入额外的“每个广告客户每项计划”配额限制。
所有在网址路径中指定了广告客户 ID 的请求(例如对 advertisers.lineItems
、advertisers.creatives
或 advertisers.channels
服务的请求)都会计入以下配额限制:
- 每个广告客户在每个项目中每分钟的总请求数:
300
- 每个广告客户在每个项目中每分钟的写入请求数:
150
写入密集型方法
以下 API 方法是写入密集型方法,这意味着它们会使用大量产品资源,因此比其他写入请求消耗更多的写入请求配额。
在计算写入请求配额用量时,对写入密集型方法发出的请求会计为 5 次写入查询。例如,如果在一分钟内发出了 100 个标准写入请求和 21 个写入密集型请求(其中没有一个指定了广告客户),则会计为 205 个写入查询 (100 + (21 * 5) =
205
),并会超出每分钟 200 个写入查询的现有一般请求配额上限。
以下方法被视为写入密集型方法:
超出配额限制
在极少数情况下,您的请求会因超出 API 请求限制而失败,此时 API 会返回一个 HTTP 状态代码及错误原因。此外,响应正文还将详细说明出错的原因。
下表列出了因超出 API 请求限制而导致请求失败时可能出现的错误,以及建议采取的措施。
代码 |
RPC |
消息 |
建议采取的措施 |
429
|
RESOURCE_EXHAUSTED
|
资源已用尽(例如,检查配额)。
|
通过 Google API 控制台检查您的使用情况,并修改您的工作流程,以更好地并行处理针对不同广告客户发出的请求,或者更普遍地降低您发送请求的速率。 |
您无法申请增加 Display & Video 360 API 配额限制。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eDisplay & Video 360 API usage is subject to quota limits to protect Google's infrastructure and ensure fair usage.\u003c/p\u003e\n"],["\u003cp\u003eTwo main quota types exist: total requests and write requests (methods modifying resources), with limits applied per project and per advertiser per project.\u003c/p\u003e\n"],["\u003cp\u003eCertain write-intensive methods consume more write quota than others.\u003c/p\u003e\n"],["\u003cp\u003eExceeding quota limits can lead to request throttling, indicated by a 429 error code, requiring adjustments to request frequency.\u003c/p\u003e\n"],["\u003cp\u003eQuota limit increases for the Display & Video 360 API are not available.\u003c/p\u003e\n"]]],[],null,["# Usage Limits\n\nUsage limits protect Google's infrastructure from automated processes that use\nthe Display \\& Video 360 API in an inappropriate way. They ensure that one developer's\nactions can't negatively impact the larger community.\n\nAPI request quota limits\n------------------------\n\nThe Display \\& Video 360 API uses two types of limits:\n\n- **Total quota limits**, which all relevant requests count against.\n- **Write quota limits** , which all relevant requests made to write methods count against. Write methods are defined as methods---such as `create`, `patch`, `delete`, or `bulkEdit`---that modify resources. Note that [some\n methods](#write_intensive) consume more write quota than others.\n\nIf your project exceeds any of these limits, [throttling could\noccur](#exceeding_limits).\n\n### Project-wide quota limit\n\nThe following default quota limits are shared by all Display \\& Video 360 API resources\nand methods:\n\n- **Total requests per minute per project:** `1500`\n- **Write requests per minute per project:** `700`\n\n### Advertiser-specific request quota limits\n\nMethods that specify an advertiser ID in the request URL count against\nadditional \"per advertiser per project\" quota limits.\n\nAll requests with an advertiser ID specified in their URL path---such as\nthose to the [`advertisers.lineItems`](/display-video/api/reference/rest/current/advertisers.lineItems),\n[`advertisers.creatives`](/display-video/api/reference/rest/current/advertisers.creatives), or\n[`advertisers.channels`](/display-video/api/reference/rest/current/advertisers.channels) services---will count against\nthe following quota limits:\n\n- **Total requests per minute per advertiser per project:** `300`\n- **Write requests per minute per advertiser per project:** `150`\n\nWrite-intensive methods\n-----------------------\n\nThe following API methods are write-intensive, meaning that they use a\nsignificant amount of product resources and, as a result, consume more\nwrite request quota than other write requests.\n\nRequests made to write-intensive methods are counted as 5 write queries\nwhen computing write request quota consumption. For example, 100 standard write\nrequests and 21 write-intensive requests (none of which specify an advertiser)\nmade within a minute would be counted as 205 write queries (`100 + (21 * 5) =\n205`) and would exceed the existing general request quota limit of 200 write\nqueries per minute.\n\nThe following methods are considered write-intensive:\n\n- [`customBiddingAlgorithms.scripts.create`](/display-video/api/reference/rest/current/customBiddingAlgorithms.scripts/create)\n- [`customBiddingAlgorithms.uploadScript`](/display-video/api/reference/rest/current/customBiddingAlgorithms/uploadScript)\n- [`firstPartyAndPartnerAudiences.create`](/display-video/api/reference/rest/current/firstPartyAndPartnerAudiences/create)\n- [`firstPartyAndPartnerAudiences.editCustomerMatchMembers`](/display-video/api/reference/rest/current/firstPartyAndPartnerAudiences/editCustomerMatchMembers)\n- [`media.upload`](/display-video/api/reference/rest/current/media/upload)\n\nExceeding quota limits\n----------------------\n\nIn the unlikely event that your request fails due to exceeding an API request\nlimit, the API returns an HTTP status code and reason for the error.\nAdditionally, the body of the response contains a detailed description of what\ncaused the error.\n\nThe following list shows the possible errors and recommended actions for\nrequest failures caused by exceeding API request limits.\n\n| Code | RPC | Message | Recommended Action |\n|-------|----------------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `429` | `RESOURCE_EXHAUSTED` | Resource has been exhausted (e.g., check quota). | [Examine your usage](//console.developers.google.com/project/_/apiui/apiview/displayvideo.googleapis.com/metrics) from the Google API Console and modify your workflow to better parallelize requests made under different advertisers or more generally slow down the rate at which you are sending requests. |\n\nIncreases cannot be requested for Display \\& Video 360 API quota limits."]]