限制
本页面列出了针对 AdSense Management API 的各种配额和限制。除了适用于 AdSense 的一般产品特定限制(例如每个账号的频道数量限制)外,还须遵守这些限制条件。
API 级配额
发送到 AdSense Management API 的所有请求都会计入常规请求速率配额,与请求类型无关。
您可以在 Google API 控制台中的配额页面查看这些配额的当前用量。您还可以设置用量提醒或额外的监控;如需了解详情,请参阅常规 Google Cloud 配额概览文档。
超过这些配额将导致请求被拒绝,并出现 HTTP 429 Too Many Requests 错误。错误消息中会提供超出配额的详细信息。
说明 |
价值 |
备注 |
单个用户和项目的每分钟查询次数 |
100 |
不适用 |
使用单个项目的所有用户的每分钟查询次数 |
500 |
不适用 |
每天查询次数 |
10000 |
每日配额会在美国太平洋时间零点重置。 |
报告大小限制
AdSense Management API 生成的报告具有大小上限,具体取决于输出格式:
报告行配额
为防止滥用,AdSense Management API 还对每天和较短时间段内可检索到的报告数据总量施加了限制。超出这些限制会导致请求被拒绝,并显示 HTTP 429 Too Many Requests 错误,以及关联的消息“Report row quota out”(报告行配额已超出)。
其他请求限制
各种请求参数用于控制应为一个请求返回的数据量(例如,page_size
表示允许分页的请求,limit
参数则表示报告生成请求)。如果未指定这些参数,则默认值始终是允许的最大值。指定更高的值会导致请求被拒绝,并出现 HTTP 400 Bad Request 错误。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["This page details AdSense Management API quotas and limits, including request rate limits, report size limits, and a report row quota."],["All API requests are subject to usage quotas, which can be monitored and configured in the Google API Console."],["Report sizes are limited to 100,000 rows for JSON format and 1,000,000 rows for CSV format, with larger reports being truncated."],["Exceeding any quota or limit will result in an error response, such as HTTP 429 Too Many Requests or HTTP 400 Bad Request."],["Daily quotas for API requests are reset around midnight Pacific time."]]],["The AdSense Management API has usage quotas and limits. Requests count against general quotas: 100 queries per minute per user/project, 500 for all users/project, and 10,000 daily. Exceeding these results in a 429 error. Report size limits are 100,000 rows for JSON and 1,000,000 for CSV; exceeding them results in truncation. A \"Report row quota exceeded\" error occurs if daily or short-term data retrieval is excessive. Overly large `page_size` or `limit` parameters cause a 400 error.\n"]]