Hello, 

I'm having trouble with the latest update on the google ads API/Python API 
Library, these are my current versions:

google-ads               14.1.0
google-api-core          2.3.0
google-api-python-client 2.33.0
google-auth              2.3.3
google-auth-httplib2     0.1.0
google-auth-oauthlib     0.4.6
google-cloud             0.34.0
google-cloud-bigquery    2.30.1
google-cloud-core        2.2.1
google-cloud-storage     1.43.0
google-crc32c            1.3.0
google-resumable-media   2.1.0
googleapis-common-protos 1.53.0

The error happens when I try to get data using the search_stream method:

Request made: ClientCustomerId: xxxxxxxxxxxx, Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v9.services.GoogleAdsService/SearchStream, RequestId: 
None, IsFault: True, FaultMessage: Connection reset by peer
Traceback (most recent call last):
  File 
"/usr/local/lib/python3.9/dist-packages/google/api_core/grpc_helpers.py", 
line 106, in __next__
    return next(self._wrapped)
  File 
"/usr/local/lib/python3.9/dist-packages/google/ads/googleads/interceptors/response_wrappers.py",
 
line 98, in __next__
    raise e
  File 
"/usr/local/lib/python3.9/dist-packages/google/ads/googleads/interceptors/response_wrappers.py",
 
line 95, in __next__
    self._failure_handler(self._underlay_call)
  File 
"/usr/local/lib/python3.9/dist-packages/google/ads/googleads/interceptors/exception_interceptor.py",
 
line 71, in _handle_grpc_failure
    raise self._get_error_from_response(response)
  File 
"/usr/local/lib/python3.9/dist-packages/google/ads/googleads/interceptors/response_wrappers.py",
 
line 85, in __next__
    message = next(self._underlay_call)
  File "/usr/local/lib/python3.9/dist-packages/grpc/_channel.py", line 426, 
in __next__
    return self._next()
  File "/usr/local/lib/python3.9/dist-packages/grpc/_channel.py", line 642, 
in _next
    return self._next_response()
  File "/usr/local/lib/python3.9/dist-packages/grpc/_channel.py", line 617, 
in _next_response
    raise self
grpc._channel._SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC 
that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "Connection reset by peer"
        debug_error_string = 
"{"created":"@1639480767.975827564","description":"Error received from peer 
ipv4:142.250.219.170:443","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Connection
 
reset by peer","grpc_status":14}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/data/bin/gads2_importer.py", line 360, in <module>
    do_gads_import(app, sh)
  File "/data/bin/gads2_importer.py", line 229, in do_gads_import
    ga.get_data("adgroup_criterion", file_handle=fi, 
extra_where=campaign_filter)
  File "/usr/local/lib/python3.9/dist-packages/wmc/google_ads2.py", line 
519, in get_data
    for batch in response:
  File 
"/usr/local/lib/python3.9/dist-packages/google/api_core/grpc_helpers.py", 
line 109, in __next__
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ServiceUnavailable: 503 Connection reset by peer

Please note that the same request works fine for other accounts, and 
occasionally it also fails with "internal error".

Can you please help?

Thank you!

Deny


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/77b08eea-2598-4877-bc84-c16ac0466b30n%40googlegroups.com.
  • In... 'Deny Watanabe' via AdWords API and Google Ads API Forum
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to