Google Ads API: RESOURCE_EXHAUSTED and other quota errors

The same quota error covers "you are done for today" and "wait five seconds". The retry delay Google sends tells you which one you hit, and reading it saves you from waiting a day for nothing.

Start free →

Made with Hermoso

Google Ads API quota errors come back as HTTP 429 with a QuotaError. The trouble is that the most common one, RESOURCE_EXHAUSTED, is used both for the daily operation cap and for short bursts, so code that treats every 429 as "try tomorrow" leaves easy work undone.

The exact error

Google's common errors page summarises QuotaError.RESOURCE_EXHAUSTED as "A system frequency limit has been exceeded." The QuotaError enum also includes:

CodeMeaning
RESOURCE_TEMPORARILY_EXHAUSTEDToo many requests in a short amount of time
EXCESSIVE_SHORT_TERM_QUERY_RESOURCE_CONSUMPTIONToo many expensive queries over a short time
EXCESSIVE_LONG_TERM_QUERY_RESOURCE_CONSUMPTIONToo many expensive queries over an extended duration
PAYMENTS_PROFILE_ACTIVATION_RATE_LIMIT_EXCEEDEDToo many accounts activated on one payments profile; wait a week

The response can carry quota_error_details with a rate_scope (ACCOUNT or DEVELOPER), a rate_name and a retry_delay, the backoff Google wants before the next request.

What it means

Google's quotas page sets daily operation limits by access level: Explorer gets 2,880 operations a day on production accounts, Basic gets 15,000 a day, Standard is unlimited. Requests over those limits are rejected with RESOURCE_EXHAUSTED.

The same code covers Keyword Planner's own limit: GenerateKeywordIdeas, GenerateKeywordHistoricalMetrics and GenerateKeywordForecastMetrics are limited to 1 request per second per customer ID. So one enum means both "for today" and "for a second".

Why it happens

  • A loop of single-operation mutates instead of batched ones.
  • Keyword Planner calls fired in parallel for the same account.
  • Wide reports with many fields over long date ranges, run repeatedly.
  • A shared project where many users draw on one daily cap.

How to fix it

  1. Read the retry delay first. If retry_delay is a few seconds, wait that long and retry. Only a delay of hours, or a rate_name that says daily, is the daily cap.
  2. Never resend a write blindly. Retry reads freely; check whether a mutate took effect before sending it again.
  3. Batch. Google's prevention tip is to "combine more operations in fewer requests."
  4. Pace Keyword Planner to one request per second per customer ID.
  5. Shrink reports: fewer fields and shorter date ranges reduce the expensive-query errors.
  6. Raise your access level if you genuinely hit the daily cap every day. See Basic vs Standard access.

How Hermoso handles it

Hermoso reads Google's retry delay instead of guessing. A short wait is reported as a short wait ("Google asked us to wait 5 seconds"), never as "used up for today"; that exact mistake happened once on a keyword ideas request, and a retry seconds later worked. Only a wait longer than an hour, or a rate bucket Google names as daily, is called the daily cap. When Google gives no wait at all, Hermoso says it cannot tell the two apart rather than picking one.

A read that Google asks to delay by 10 seconds or less is retried once automatically. A write is never resent, because a change Google half-applied must not be sent twice. Every message says nothing was created or changed. See Google Ads over MCP.

Related

Every platform error we have documented is on the error reference. For app reviews and access levels, see how to get API access.

Sources

Frequently asked questions

Does RESOURCE_EXHAUSTED always mean the daily quota is used up?

No. The same code covers short-term limits such as Keyword Planner's 1 request per second. Read retry_delay: seconds means a short wait, hours means the daily cap.

What are the Google Ads API daily operation limits?

Explorer allows 2,880 operations a day on production accounts, Basic allows 15,000, and Standard is unlimited.

Do failed network requests count against the quota?

Google says requests that fail at the network level without returning a GoogleAdsFailure do not count against the daily quota.

Skip the error hunting: connect your accounts to Hermoso free, no card.

Start free →   See pricing