RESOURCE_EXHAUSTED, A huge number of API requests I didn't know about

1,016 views
Skip to first unread message

YuK1

unread,
Feb 7, 2022, 2:20:04 AM2/7/22
to Google Ads API and AdWords API Forum
I am using the Google Ads API.

Search, but I am using google.ads.googleads.v8.services.GoogleAdsService.
GoogleAdsService.Search, but it gets limited very quickly (maybe 15000 times).

The only place I actually use it is
Only once per ad registration.

However, the dashboard of the Google Cloud Platform API shows "12000 times".

Is it being accessed illegally?
Is there any way to find out what kind of queries are being sent?

The error is as follows

{
    "message": "Resource has been exhausted (e.g. check quota).",
    "code": 8,
    "status": "RESOURCE_EXHAUSTED",
    "details": [
        {
            "@type": 0,
            "data": "type.googleapis.com\\/google.ads.googleads.v8.errors.GoogleAdsFailure"
        },
        {
            "@type": 0,
            "data": [
                {
                    "errorCode": {
                        "quotaError": "RESOURCE_EXHAUSTED"
                    },
                    "message": "Too many requests. Retry in 286 seconds.",
                    "details": {
                        "quotaErrorDetails": {
                            "rateScope": "DEVELOPER",
                            "rateName": "Number of operations for basic access",
                            "retryDelay": "286s"
                        }
                    }
                }
            ]
        },
        {
            "@type": 0,
            "data": "DtEn4wpoAwR_23pV2HdQtg"
        }
    ]
}

Google Ads API Forum Advisor

unread,
Feb 7, 2022, 11:18:03 AM2/7/22
to ras...@gmail.com, adwor...@googlegroups.com

Hello there,

Thanks for reaching out to the Google Ads API support. The RESOURCE_EXHAUSTED error usually 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. That said, 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.
You may also experience this error if you have already exceeded the daily (1,000 requests) quota for GET requests/operations. Please refer to this documentation for the quota values you need to consider daily when performing requests using the API.

If the issue persists, please share the complete request and response logs with the request-id, so that our team may take a closer look. Please send via the Reply privately to the author option while sharing the details.

For the client library logging can be enabled 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.

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2W4u3B:ref

ラスユキ

unread,
Feb 7, 2022, 11:01:04 PM2/7/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thank you for your generous response.

In Metrics Explorer, the maximum number of times in an hour is 14.
This is less than 1000 times in 24 hours.

image.png

In the "API / Service Details" section, you can see the number of times it was used in a day as follows
It is said that a total of 12,000 communications have been made.
image.png

Why are the numbers so different?

2022年2月8日(火) 1:17 Google Ads API Forum Advisor <ads...@forumsupport.google>:
Reply all
Reply to author
Forward
0 new messages