RESOURCE_EXHAUSTED Error

1,204 views
Skip to first unread message

Rten Marketo

unread,
Nov 28, 2022, 8:20:34 AM11/28/22
to AdWords API and Google Ads API Forum
Hi Team, 

We are seeing continuously resource exhausted errors while adding offline jobs. May I know where to check for quota? It is ambiguous to understand whether this quota is based on developer token or is it based on User Oauth2 access token or is it based on API resource?

Could you please provide more info over quotas? and Where to get the quota info for an API. 



2022-11-25 03:18:30,810 WARN [grpc-default-executor-0] [] [] com.google.ads.googleads.lib.request.summary - FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v11.services.OfflineUserDataJobService/AddOfflineUserDataJobOperations, Endpoint: googleads.googleapis.com:443, CustomerID: customers/{customerId}/offlineUserDataJobs/27170498362, RequestID: 40Qf7-OeA9pEMgh0WKVScQ, ResponseCode: RESOURCE_EXHAUSTED, Fault: Resource has been exhausted (e.g. check quota)..
2022-11-25 03:18:30,810 INFO [grpc-default-executor-0] [] [] com.google.ads.googleads.lib.request.detail - FAILURE REQUEST DETAIL.
Request
-------
MethodName: google.ads.googleads.v11.services.OfflineUserDataJobService/AddOfflineUserDataJobOperations
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=<login-Custoimer>, x-goog-api-client=gl-java/11.0.12 gccl/0.0.0 gapic/ gax/2.6.1 grpc/ pb/3.18.1}
Body: resource_name: "customers/{CustomerId}/offlineUserDataJobs/27170498362"
operations {
  create {
    user_identifiers {
      hashed_email: "<hased mail>"
    }
  }
}
enable_partial_failure: true


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=40Qf7-OeA9pEMgh0WKVScQ,date=Fri, 25 Nov 2022 09:18:30 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    quota_error: RESOURCE_EXHAUSTED
  }
  message: "Too many requests. Retry in 4 seconds."
  details {
    quota_error_details {
      retry_delay {
        seconds: 4
      }
    }
  }
}
request_id: "40Qf7-OeA9pEMgh0WKVScQ"

Status: Status{code=RESOURCE_EXHAUSTED, description=Resource has been exhausted (e.g. check quota)., cause=null}

Google Ads API Forum Advisor

unread,
Nov 28, 2022, 10:21:35 AM11/28/22
to r10.m...@gmail.com, adwor...@googlegroups.com
Hi Rten,

Thank you for reaching out to the Google Ads API support team.

Kindly note that the RESOURCE_EXHAUSTED error generally occurs when you are sending too many requests in a short period of time. The server throws this error once it detects that your request has exceeded the system frequency limit. I would recommend setting up short delays between requests or combine more operations in fewer requests.

Please refer to the Best practices guide to optimize the efficiency and performance. Also, this may occur if you have already exceeded the daily limit of 15,000 API operations per day. You may refer to this documentation for the quota you need to consider daily when performing requests using the API. It says that the basic access level allows the developer token to execute up to 15,000 operational requests per day and 1,000 get operations per day only.

However, we would request that you provide the complete request and response logs, with the request-id, generated for the RESOURCE_EXHAUSTED error in order to check further. You can enable logging, which you may do so by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gfyzH:ref

Google Ads API Forum Advisor

unread,
Nov 28, 2022, 10:23:07 AM11/28/22
to r10.m...@gmail.com, adwor...@googlegroups.com
Hi Rten,

Thank you for reaching out to the Google Ads API support team.

Kindly note that the RESOURCE_EXHAUSTED error generally occurs when you are sending too many requests in a short period of time. The server throws this error once it detects that your request has exceeded the system frequency limit. I would recommend setting up short delays between requests or combine more operations in fewer requests.

Please refer to the Best practices guide to optimize the efficiency and performance. Also, this may occur if you have already exceeded the daily limit of 15,000 API operations per day. You may refer to this documentation for the quota you need to consider daily when performing requests using the API. It says that the basic access level allows the developer token to execute up to 15,000 operational requests per day and 1,000 get operations per day only.

However, we would request that you provide the complete request and response logs, with the request-id, generated for the RESOURCE_EXHAUSTED error in order to check further. You can enable logging, which you may do so by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. Please reply via privately author option.
Reply all
Reply to author
Forward
0 new messages