I always get RESOURCE_TEMPORARILY_EXHAUSTED when invoking MutateCampaignBudgets

167 views
Skip to first unread message

Luca Sembolini

unread,
May 27, 2019, 2:25:45 AM5/27/19
to AdWords API and Google Ads API Forum
Everything was working fine and now out of nowhere i get this error for every call i do. I don't think it's my problem because the code is the same some i would like to know what can be the cause of this error code.
I'm using the newest Google Ads API

Thank you

The log of the error is :

MethodName: google.ads.googleads.v1.services.CampaignBudgetService/MutateCampaignBudgets
Headers: {developer-token=REDACTED, login-customer-id=2457285412, x-goog-api-client=gl-java/1.8.0_191 gapic/ gax/1.35.0 grpc/1.16.1}
Body: customer_id: "5422666172"
operations {
  create {
    name {
      value: "TEMP BUDGET-1558701535949"
    }
    amount_micros {
      value: 20000
    }
    delivery_method: STANDARD
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=qByp03HamafJsel05irQ2Q,date=Fri, 24 May 2019 12:39:00 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")
Body: null
Failure message: errors {
  error_code {
    quota_error: RESOURCE_TEMPORARILY_EXHAUSTED
  }
  message: "Too many requests. Retry in 30 seconds."
  trigger {
    string_value: "Basic Access Operations Quota"
  }
}

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

Google Ads API Forum Advisor Prod

unread,
May 27, 2019, 6:13:04 AM5/27/19
to adwor...@googlegroups.com
Hi Luca,

Thank you for reaching out. The RESOURCE_TEMPORARILY_EXHAUSTED error occurred because you have reached your basic access operations quota or exceeded your rate limit. For more information, you may check the API Limits and Quotas guide. To fix this, I would suggest that you check out this guide about rate limits and follow the recommended practices to reduce the chances of exceeding rate limits.

You may also opt to upgrade to standard access so you can make unlimited number of operations. To learn more you may refer to our rate sheet.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UAqixq:ref

Luca Sembolini

unread,
May 27, 2019, 7:14:25 AM5/27/19
to AdWords API and Google Ads API Forum
Hi,
thanks for the answer, I understood that the problem is my basic access token because i can do more than the 10000 request per day. The only problem is that even if today is a brand new day my first request failed with the same error. So my new question is: does this limit really reset overnight or it reset in a long period of time?

Thank you in advance

Google Ads API Forum Advisor Prod

unread,
May 27, 2019, 8:24:28 AM5/27/19
to adwor...@googlegroups.com
Hi Luca,

Although we do not have a specific period as to when the error can be lifted, it should normally take you 24 hours before the refresh and make your next API calls.

Should it be already more than that, you may send to me the generated JSON logs so I can further investigate. You may reply to me privately using the Reply privately to author option.
Reply all
Reply to author
Forward
0 new messages