RESOURCE_TEMPORARILY_EXHAUSTED in creating Ads

39 views
Skip to first unread message

Agustín Scigliano

unread,
May 2, 2019, 5:15:50 PM5/2/19
to AdWords API and Google Ads API Forum
Hi, I am having a problem with the Java client library. I am creating lots of Campaigns, Adgroups, Ads, etc.

I use the Mutate for every resource. For example : 
MutateAdGroupsResponse response =
                            adGroupServiceClient.mutateAdGroups(Long.toString(customerId), adGroupOperations);

Before, i used to do this in just one call adding all the operations in the adGroupOperations, but I started having a problem with an exception in GRPC.  "unexpected EOS on DATA frame" . So, i started grouping this requests in about 100 operations per mutate call. Now i have the RESOURCE_TEMPORARILY_EXHAUSTED error. How can I know which is the right balance not to fall in any of the two problems? If not, how much time do I need to have between the mutate calls not to have this problem?

Thanks.

googleadsapi...@google.com

unread,
May 3, 2019, 3:49:27 AM5/3/19
to adwor...@googlegroups.com, AdWords API and Google Ads API Forum
Hi Agustin,

The RESOURCE_TEMPORARILY_EXHAUSTED error usually occurs when you are making the calls to a specific service at a higher rate. What you can do is you can retry the API call after 30 seconds or more time.

If you are consistently encountering the error, you can provide the complete SOAP request and response logs together with the customer ID and the error message via Reply privately to author so I can investigate.

Regards,
Ejay
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/dd793927-d2c6-4d8a-94db-5657e5ca6b7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages