[OfflineUserDataJob] Getting RESOURCE_EXHAUSTED

160 views
Skip to first unread message

Hồ Minh Nhật - ITC - AI & Big Data - Software Engineer

unread,
Nov 21, 2022, 10:04:44 AM11/21/22
to Google Ads API and AdWords API Forum
Dear Google Ads Team,

Recently I'm using OfflineUserDataJob to upload Audience.

Usually, my Audience contains between 1m ~ 7m identifier

What I did is, I add multiple addOfflineUserDataJobOperations
(Follow the rate limit 20 identifer per 1 Operation AND 100,000 per request)

offlineUserDataJobService.addOfflineUserDataJobOperations(
addOfflineUserDataJobOperationsRequest
)

After adding multiple  addOfflineUserDataJobOperations.
 I run
offlineUserDataJobService.runOfflineUserDataJobAsync(offlineUserDatJobResourceName)

It work normally for the past 3-4 months. Until now (Nov-19), I usually get the error quota_error: RESOURCE_EXHAUSTED while addOfflineUserDataJobOperations

Can you help me check this issues.

What I have try:
   Reading through forum, some recommendation is that adding a short delay between each request. I add a 15s delay between every addOfflineUserDataJobOperations but no luck

--------------------------------------------------------------------------------------------------

[service] com.google.ads.googleads.v11.errors.GoogleAdsException: errors {
[service]   error_code {
[service]     quota_error: RESOURCE_EXHAUSTED
[service]   }
[service]   message: "Too many requests. Retry in 6 seconds."
[service]   details {
[service]     quota_error_details {
[service]       retry_delay {
[service]         seconds: 6
[service]       }
[service]     }
[service]   }
[service] }

Message has been deleted

Nick Edwards

unread,
Nov 21, 2022, 1:24:17 PM11/21/22
to Google Ads API and AdWords API Forum
We are also getting this error when trying to update customer lists. I have checked our GCP logs and we aren't even close to the daily API limits...

Google Ads API Forum Advisor

unread,
Nov 21, 2022, 4:08:25 PM11/21/22
to n....@hotmail.co.uk, adwor...@googlegroups.com
Hello,

Thanks for reaching out. 

The error log in the original post indicates that the error is due to requests being made too frequently within some time interval. Can you please try implementing an exponential backoff? If you continue to face the issue, please privately reply to us and provide the complete request and response logs.

Thanks,

Google Logo
Matt
Google Ads API Team
 
  

ref:_00D1U1174p._5004Q2gRBOo:ref

Nick Edwards

unread,
Nov 21, 2022, 4:35:00 PM11/21/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi Matt,

Thanks for getting back to me. 

What is classed as too frequently?  Is this a new limit that has been put in? As per the original post this has only occurred recently… Working fine the last 3-4 months. 

Thanks
Nick 

On 21 Nov 2022, at 21:08, Google Ads API Forum Advisor <ads...@forumsupport.google> wrote:

 Hello,

Nick Edwards

unread,
Nov 21, 2022, 4:41:32 PM11/21/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Sorry one other thing - wouldn’t we see a different error message for rate limits? 

“Requests that are in violation of rate limits will be rejected with the error:RESOURCE_TEMPORARILY_EXHAUSTED.”

Thanks 


On 21 Nov 2022, at 21:35, Nick Edwards <n....@hotmail.co.uk> wrote:

 Hi Matt,
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/GV1PR10MB6074B59B0CAE0C223A707960B30A9%40GV1PR10MB6074.EURPRD10.PROD.OUTLOOK.COM.
Reply all
Reply to author
Forward
0 new messages