Hi Andrew,
To help me assess the issue, could you confirm if you are using the AdWords
API <https://developers.google.com/adwords/api/docs/guides/start> or the
Google
Ads API Beta <https://developers.google.com/google-ads/api/docs/start>?
Could you confirm if you are using a Basic Access
<https://developers.google.com/adwords/api/docs/access-levels#basic_access>
developer token? Applying for Standard Access
<https://developers.google.com/adwords/api/docs/access-levels#standard_access>
can help increase your rate limits and prevent the error form occurring.
You could apply for Standard Access by submitting this form
<https://www.google.com/appserve/fb/forms/standardaccess/>. After
submitting, the AdWords Compliance Team will notify you regarding the
status of your token within 2 business days. You may continue making your
API calls once Standard Access has been approved.
However, if the API calls are made too quickly even with Standard Access,
you might still get rate limit errors with *ACCOUNT* scope. The only
workaround in that case is to slow down and wait at least until the seconds
specified in the retryafterseconds
<https://developers.google.com/adwords/api/docs/guides/rate-limits#elements_of_rateexceedederror>
in
the error message.
About the error that you have been getting, could you please confirm
whether the issue is consistent? We are not aware of any issues at the
moment. Our suggestion is to refer to our best practice guide
<https://developers.google.com/adwords/api/docs/guides/rate-limits#take_control>
to
handle this situation. You could try to use the exponential backoff policy
mentioned in that guide. Please let us know if you have any additional
questions.
Regards,
Dannison
AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 03/01/19 06:59:31 andrew.simkov...@carfeine.com wrote:
We are getting an error when attempting any type of request to the Google
Ads API. There's not much info to go by about how to address this error.
The main error is: *google.api_core.exceptions.DeadlineExceeded: 504
Deadline Exceeded*
Below is a stack trace. Any guidance on what to do here?
Traceback (most recent call last): File "dev_ads.py", line 221, in <module>
main()
File "dev_ads.py", line 217, in main
get_managed_customer_metricts(client, customer_id)
File "dev_ads.py", line 190, in get_managed_customer_metricts
for item in results:
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/page_iterator.py",
line 204, in _items_iter
for page in self._page_iter(increment=False):
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/page_iterator.py",
line 235, in _page_iter
page = self._next_page()
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/page_iterator.py",
line 526, in _next_page
response = self._method(self._request)
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py",
line 143, in __call__
return wrapped_func(*args, **kwargs)
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/retry.py",
line 270, in retry_wrapped_func
on_error=on_error,
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/retry.py",
line 179, in retry_target
return target()
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/timeout.py",
line 214, in func_with_timeout
return func(*args, **kwargs)
File
"/home/user/.local/share/virtualenvs/adwords-capture-sYpuCRr6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py",
line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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/a3fe83ba-e30f-4708-8500-60127e94b9d3%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/a3fe83ba-e30f-4708-8500-60127e94b9d3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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/08p11g000400000103sffk0000uav4x6cmj4c9m6so30c1g68qjadpk%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.