Quota Exhaustion Issue with GoogleAds: SearchStream API

78 views
Skip to first unread message

Development Mailbox

unread,
Jul 22, 2024, 7:02:39 PM7/22/24
to Google Ads API and AdWords API Forum
Hello everyone,
We are encountering an issue with the Google Ads API. Despite having our quota listed as unlimited, we are receiving the following error after breaching 15,000 API calls per day:
{
  'error': {
    'code': 429,
    'message': 'Resource has been exhausted (e.g. check quota).',
    'status': 'RESOURCE_EXHAUSTED',
    'details': [
      {
        '@type': 'type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure',
        'errors': [
          {
            'errorCode': {'quotaError': 'RESOURCE_EXHAUSTED'},
            'message': 'Too many requests. Retry in 40021 seconds.',
            'details': {
              'quotaErrorDetails': {
                'rateScope': 'DEVELOPER',
                'rateName': 'Number of operations for basic access',
                'retryDelay': '40021s'
              }
            }
          }
        ],
        'requestId': 'C429vsZB8uLsk2lQ8kPsAQ'
      }
    ]
  }
}

From our understanding, our quota is supposed to be unlimited. However, it appears that we are getting a error of 'RESOURCE_EXHAUSTED' after 15,000 API calls daily.  This issue is severely impacting our business operations.

We are attaching a screenshot of our Cloud Console where it shows that our API calls limit is unlimited.

We are currently utilizing the v16 of GoogleAds: SearchStream API.

We look forward to your prompt response.

GoogleAdsResourceExhaustIssue.png

Google Ads API Forum Advisor

unread,
Jul 23, 2024, 1:39:50 AM7/23/24
to d...@clickmerito.com, adwor...@googlegroups.com
Hi,

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

I understand that you have encountered the "RESOURCE_EXHAUSTED" error, which means that a system frequency limit has been exceeded. Kindly prevent sending too many requests in a short period of time and also ensure to set up short delays between requests or combine more operations in fewer requests. Also, please check this sample code for how to Handle a Rate Exceeded Error for more information.

Additionally, we also have daily API operation limits where requests that violate these limits are rejected with the error: RESOURCE_EXHAUSTED. You may check out API Limits and Quotas for more information. 

I could see that you only provided the response logs. In order to investigate the issue further, provide us with the updated complete API logs (request body and request-id and request header) generated at your end to assist you better.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vE1tV:ref" (ADR-00259087)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages