Hi,google. I run the the first example(get_campaigns.py) through python client library,but get something error,I retried the request many times,but it did not work.here is the log:
[2019-03-21 09:56:36 - INFO] Request ------- Method: /google.ads.googleads.v1.services.GoogleAdsService/Search Host: googleads.googleapis.com:443 Headers: { "developer-token": "REDACTED", "x-goog-api-client": "gl-python/3.6.5 grpc/1.18.0 gax/1.7.0 gapic/1.1.1" } Request: { "customerId": "7107558364", "query": "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id", "pageSize": 10 } Response ------- Headers: {} Fault: { "created": "@1553133396.311000000", "description": "Failed to create subchannel", "file": "src/core/ext/filters/client_channel/client_channel.cc", "file_line": 2261, "referenced_errors": [ { "created": "@1553133396.311000000", "description": "Pick Cancelled", "file": "src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc", "file_line": 224, "referenced_errors": [ { "created": "@1553133396.311000000", "description": "Deadline Exceeded", "file": "src/core/ext/filters/deadline/deadline_filter.cc", "file_line": 69, "grpc_status": 4 } ] } ] } [2019-03-21 09:56:36 - WARNING] Request made: ClientCustomerId: 7107558364, Host: googleads.googleapis.com:443, Method: /google. ads.googleads.v1.services.GoogleAdsService/Search, RequestId: None, IsFault: True, FaultMessage: Deadline Exceeded Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 57, in error_remapped_callable return callable_(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 215, in __call__ wait_for_ready=wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 245, in _with_call return call.result(), call File "C:\Anaconda3\lib\site-packages\grpc\_channel.py", line 295, in result raise self File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 236, in continuation wait_for_ready=new_wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 258, in with_call wait_for_ready=wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 245, in _with_call return call.result(), call File "C:\Anaconda3\lib\site-packages\grpc\_channel.py", line 295, in result raise self File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 236, in continuation wait_for_ready=new_wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 258, in with_call wait_for_ready=wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 244, in _with_call continuation, client_call_details, request) File "C:\Anaconda3\lib\site-packages\google\ads\google_ads\client.py", line 349, in intercept_unary_unary self._handle_grpc_failure(response) File "C:\Anaconda3\lib\site-packages\google\ads\google_ads\client.py", line 324, in _handle_grpc_failure raise exception File "C:\Anaconda3\lib\site-packages\grpc\_interceptor.py", line 236, in continuation wait_for_ready=new_wait_for_ready) File "C:\Anaconda3\lib\site-packages\grpc\_channel.py", line 560, in with_call return _end_unary_response_blocking(state, call, True, None) File "C:\Anaconda3\lib\site-packages\grpc\_channel.py", line 467, in _end_unary_response_blocking raise _Rendezvous(state, None, None, deadline) grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with: status = StatusCode.DEADLINE_EXCEEDED details = "Deadline Exceeded" debug_error_string = "{"created":"@1553133396.311000000","description":"Failed to create subchannel","file":" src/core/ext/filters/client_channel/client_channel.cc","file_line":2261," referenced_errors":[{"created":"@1553133396.311000000","description":"Pick Cancelled","file":" src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc"," file_line":224,"referenced_errors":[{"created":"@1553133396.311000000"," description":"Deadline Exceeded","file":" src/core/ext/filters/deadline/deadline_filter.cc","file_line":69," grpc_status":4}]}]}" > The above exception was the direct cause of the following exception: Traceback (most recent call last): File "c:/PythonProjects/google_ads_api_test/google-ads-python-master/google-ads-python-master/examples/basic_operations/get_campaigns.py", line 68, in <module> main(google_ads_client, "7107558364", _DEFAULT_PAGE_SIZE) File "c:/PythonProjects/google_ads_api_test/google-ads-python-master/google-ads-python-master/examples/basic_operations/get_campaigns.py", line 40, in main for row in results: File "C:\Anaconda3\lib\site-packages\google\api_core\page_iterator.py", line 204, in _items_iter for page in self._page_iter(increment=False): File "C:\Anaconda3\lib\site-packages\google\api_core\page_iterator.py", line 235, in _page_iter page = self._next_page() File "C:\Anaconda3\lib\site-packages\google\api_core\page_iterator.py", line 526, in _next_page response = self._method(self._request) File "C:\Anaconda3\lib\site-packages\google\api_core\gapic_v1\method.py", line 143, in __call__ return wrapped_func(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\google\api_core\retry.py", line 270, in retry_wrapped_func on_error=on_error, File "C:\Anaconda3\lib\site-packages\google\api_core\retry.py", line 179, in retry_target return target() File "C:\Anaconda3\lib\site-packages\google\api_core\timeout.py", line 214, in func_with_timeout return func(*args, **kwargs) File "C:\Anaconda3\lib\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/25ce469b-5d0d-4894-bb03-d0980a6c47e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.