Getting Exception when calling run_offline_user_data_job

100 views
Skip to first unread message

Hoyman Chen

unread,
May 5, 2023, 9:00:55 AM5/5/23
to Google Ads API and AdWords API Forum
Hi,

I'm getting this error when trying calling run_offline_user_data_job after creating the offline_user_data_job: 
raise exceptions.from_grpc_error(exc) from exc\\ngoogle.api_core.exceptions.ResourceExhausted: 429 Resource has been exhausted (e.g. check quota). [type_url: "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure"\\nvalue: "'Too many requests. Retry in 49 seconds.Number of operations for basic access.

How long do I need to wait in between requests as to not hit the API rate limit quota?

Thanks

Google Ads API and AdWords API Forum

unread,
May 5, 2023, 10:12:38 AM5/5/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/3jafWmlVK-cfrom the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
May 5, 2023, 10:22:55 AM5/5/23
to Google Ads API and AdWords API Forum
Hi,

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

Regarding your concern, you mentioned that you are encountering the 429 error. As per this document, all of the Google Ads API client libraries use gRPC for generating requests and responses. By default, gRPC has a message size of 4 MB, but our client libraries set the max message size to 64 MB in order to increase efficiency. Requests that violate this limitation will not generate a GoogleAdsError, but will generate a 429 Resource Exhausted gRPC error. You may refer to the list of gRPC error codes and messages.

For more information about this, you may check our API Limits and QuotasRate Limits and System Limits guides.

Let us know if you have further questions.

Links included:

Regards,
Google Ads API Team
On Friday, May 5, 2023 at 9:00:55 PM UTC+8 hoy...@yelp.com wrote:

Hoyman Chen

unread,
May 5, 2023, 10:26:39 AM5/5/23
to Google Ads API and AdWords API Forum
Just to check my understanding, we are getting this error because the message size we are sending is too large? Not because we are sending too many requests within a short period of time?

Thanks

Hoyman Chen

unread,
May 5, 2023, 10:57:26 AM5/5/23
to Google Ads API and AdWords API Forum
In this case, would reducing the number of operations that we add to a OfflineUserDataJobRequest prevent us from hitting this error?

Google Ads API and AdWords API Forum

unread,
May 9, 2023, 5:59:19 AM5/9/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/3jafWmlVK-cfrom the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
May 9, 2023, 6:05:05 AM5/9/23
to Google Ads API and AdWords API Forum
Hi,

Thank you for your patience.

Regarding your concern, please note that there are many possible causes of the ResourceExhausted error. As per this guide (https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#quotaerror), the said error mean a system frequency limit has been exceeded. I would highly suggest checking our API Limits and Quotas (https://developers.google.com/google-ads/api/docs/best-practices/quotas?hl=en) as this has all the details regarding this.

Regards,
Google Ads API Team
On Friday, May 5, 2023 at 10:57:26 PM UTC+8 hoy...@yelp.com wrote:
Reply all
Reply to author
Forward
0 new messages