ResourceExhausted - Listing accounts

69 views
Skip to first unread message

Ales Sturala

unread,
Nov 12, 2020, 4:23:42 AM11/12/20
to AdWords API and Google Ads API Forum
Hello,

We use a code for listing accounts from this documentation page: https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy

We've migrated to Google Ads API from Google AdWords API and within less than an hour we have run into ResourceExhausted errors, bringing our app out of service :-/

Can you please let me know what the issue is? What limit did we run into? It doesn't say what limit it is and what the quota is neither.

  • We have STANDARD access
  • I know that there is a limit of 1,000 Get requests per day, nevertheless when we run into this error, the retryDelay is not more than 2 hours after each time we run into it so then this shouldn't be a daily quota limit 
  • Request ID:  MoKNN9ntONjF9nPdug0xSg

--- [GoogleAdsException] --------------------------------------------------------------
Message: Status(StatusCode="ResourceExhausted", Detail="Resource has been exhausted (e.g. check quota).", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1605107801.441000000","description":"Error received from peer ipv4:172.217.17.106:443","file":"T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\lib\surface\call.cc","file_line":1062,"grpc_message":"Resource has been exhausted (e.g. check quota).","grpc_status":8}")
File: C:\agent1\_work\3\s\TC.Website.Services\GoogleAds\GoogleAdsService.cs
Method: GetAccessibleCustomerIds
Line: 310
Column: 17
Exception: {
  "StatusCode": 8,
  "Details": "Resource has been exhausted (e.g. check quota).",
  "RequestId": "MoKNN9ntONjF9nPdug0xSg",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "quotaError": "RESOURCE_EXHAUSTED"
        },
        "message": "Too many requests. Retry in 3254 seconds.",
        "details": {
          "quotaErrorDetails": {
            "rateScope": "DEVELOPER",
            "rateName": "Get requests for standard access",
            "retryDelay": "3254s"
          }
        }
      }
    ]
  }
}  

If this is a a problem with the 1,000 Get requests a day, how are we supposed to list all the accounts for our users? We work with agencies and larger advertisers that have many accounts. This was flawless in Google AdWords API, why listing accounts would count into the limit, what shall we do?


Google Ads API Forum Advisor Prod

unread,
Nov 12, 2020, 3:56:21 PM11/12/20
to al...@trueclicks.com, adwor...@googlegroups.com

Hi Ales,

Thank you for reaching out. You encountered this RESOURCE_EXHAUSTED error as you have reached the daily limit for the get request. The get request is very expensive and it is recommended to use search request instead of get request. Please make sure you replace the get request with search request as much as possible. 

Thanks and regards,
Xiaoming, Google Ads API Team

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q27tH22:ref
Reply all
Reply to author
Forward
0 new messages