限制
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面列出了针对 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):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis page details AdSense Management API quotas and limits, including request rate limits, report size limits, and a report row quota.\u003c/p\u003e\n"],["\u003cp\u003eAll API requests are subject to usage quotas, which can be monitored and configured in the Google API Console.\u003c/p\u003e\n"],["\u003cp\u003eReport sizes are limited to 100,000 rows for JSON format and 1,000,000 rows for CSV format, with larger reports being truncated.\u003c/p\u003e\n"],["\u003cp\u003eExceeding any quota or limit will result in an error response, such as HTTP 429 Too Many Requests or HTTP 400 Bad Request.\u003c/p\u003e\n"],["\u003cp\u003eDaily quotas for API requests are reset around midnight Pacific time.\u003c/p\u003e\n"]]],["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"],null,["# Limits\n\nThis page lists various quotas and limits specific to the AdSense Management API. These apply in addition\nto any product-specific limits (such as the number of channels per account) that apply to AdSense in general.\n\n### API-level quotas\n\n\nAll requests sent to the AdSense Management API count against general request-rate quotas, independent of\nthe type of the request.\n\n\nYou can view your current usage for any of these quotas by using the\n[Quotas](https://console.cloud.google.com/iam-admin/quotas) page in the\nGoogle API Console. You can also set up usage alerting or additional monitoring; see the general\n[Google Cloud Quotas overview documentation](https://cloud.google.com/docs/quotas/overview)\nfor more information.\n\n\nExceeding these quotas will cause the request to be rejected with an HTTP 429 Too Many Requests\nerror. The error message will include details of which quota was exceeded.\n\n| Description | Value | Notes |\n|---------------------------------------------------------|--------|--------------------------------------------------|\n| Queries per minute for a single user and project | 100 | n/a |\n| Queries per minute for all users using a single project | 500 | n/a |\n| Queries per day | 10,000 | Daily quotas reset around midnight Pacific time. |\n\n### Report size limits\n\n\nReports generated by the AdSense Management API have a maximum size that depends upon the output format:\n\n- **JSON reports** (e.g. as generated by the [accounts.reports.generate](/adsense/management/reference/rest/v2/accounts.reports/generate) method) are limited to a maximum of 100,000 rows. Reports larger than this will be truncated, but the response includes a `totalMatchedRows` field that includes the size of the full report, which can be used to identify whether truncation has occurred.\n- **CSV reports** (e.g. as generated by the [accounts.reports.generateCsv](/adsense/management/reference/rest/v2/accounts.reports/generateCsv) method) are limited to a maximum of 1,000,000 rows. Reports larger than this will be truncated.\n\n### Report row quota\n\n\nThe AdSense Management API also applies limits to the total amount of reporting data that may be retrieved\nover daily and shorter periods in order to prevent abusive usage. Exceeding these limits will\ncause the request to be rejected with an HTTP 429 Too Many Requests error with an associated\nmessage of \"Report row quota exceeded\".\n\n### Other request limits\n\n\nVarious request parameters control how much data should be returned for a request (for example,\n`page_size` for requests that allow pagination, or the `limit` parameter for\nreport generation requests). If these parameters are unspecified, the default value is always the\nmaximum-allowed value. Specifying a higher value will cause the request to be rejected with an\nHTTP 400 Bad Request error."]]