Internal Error from googleads-python-lib GoogleAdsService.search

17 views
Skip to first unread message

Matt Von Bargen

unread,
May 13, 2020, 7:23:44 AM5/13/20
to AdWords API and Google Ads API Forum
Hi, we're receiving an "Internal Error" when trying to execute the "search" method of "GoogleAdsService" using the googleads-python-lib. Below, I've pasted the debug log produced by the lib: (please note that I've replaced our customer_id with "ALSO-REDACTED".) Do you have any idea what the problem is, or any way to get it fixed?

Thank you, and please let me know if you need any additional information from me.

[2020-05-13 10:44:20,249] INFO [google.ads.google_ads.client]: 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.7.6 grpc/1.26.0 gax/1.15.0 gapic/4.1.1"
}
Request: customer_id: "ALSO-REDACTED"
query: "SELECT ad_group.id, ad_group.name, ad_group.campaign FROM ad_group ORDER BY ad_group.id"
page_token: "CPqosrm7qqLyKRDYswEYjr-J7aAuIhZnc3YzUGt2Yzlac25ta0FQZzBpcVlBKgJWMTAAOLiqvQFAu40O"
page_size: 1000


Response
-------
Headers: {
  "request-id": "isNrveLDHyVrDm0FfC3KSQ"
}
Fault: {
  "created": "@1589366660.248872582",
  "description": "Error received from peer ipv4:172.217.13.74:443",
  "file": "src/core/lib/surface/call.cc",
  "file_line": 1056,
  "grpc_message": "Internal error encountered.",
  "grpc_status": 13
}

[2020-05-13 10:44:20,249] WARNING [google.ads.google_ads.client]: Request made: ClientCustomerId: ALSO-REDACTED, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v1.services.GoogleAdsService/Search, RequestId: isNrveLDHyVrDm0FfC3KSQ, IsFault: True, FaultMessage: Internal error encountered.
Using PROD AMP config
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 57, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 222, in __call__
    compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 333, in result
    raise self
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 248, in continuation
    compression=new_compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 272, in with_call
    compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 333, in result
    raise self
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 248, in continuation
    compression=new_compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 272, in with_call
    compression=compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 256, in _with_call
    continuation, client_call_details, request)
  File "/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py", line 139, in intercept_unary_unary
    self._handle_grpc_failure(response)
  File "/usr/local/lib/python3.7/site-packages/google/ads/google_ads/interceptors/exception_interceptor.py", line 118, in _handle_grpc_failure
    raise exception
  File "/usr/local/lib/python3.7/site-packages/grpc/_interceptor.py", line 248, in continuation
    compression=new_compression)
  File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 835, in with_call
    return _end_unary_response_blocking(state, call, True, None)
  File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
\tstatus = StatusCode.INTERNAL
\tdetails = "Internal error encountered."
\tdebug_error_string = "{"created":"@1589366660.248872582","description":"Error received from peer ipv4:172.217.13.74:443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Internal error encountered.","grpc_status":13}"
>

Google Ads API Forum Advisor Prod

unread,
May 13, 2020, 1:47:45 PM5/13/20
to mvonb...@zulily.com, adwor...@googlegroups.com
Hi Matt,

Thank you for reaching out to us. I see that you're encountering an internal error with the Google Ads API Python library. Could you post your issue here so that our client library support team can take a look, as they are better equipped to assist you with concerns with the Python client library? Let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5004Q1zLi9V:ref
Reply all
Reply to author
Forward
0 new messages