We are observing the GRPC::DeadlineExceeded error while querying the google ads API via the ruby client.
W, [2022-06-13T15:38:53.292380 #1568] WARN -- : CID: 9928077892, Host:
googleads.googleapis.com:443, Method: /google.ads.googleads.v9.services.GoogleAdsService/Search, IsFault: yes, Request ID:
I, [2022-06-13T15:38:53.292674 #1568] INFO -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"3661020287","x-goog-api-client":"gl-ruby/2.7.5 gccl/15.0.0 gax/0.6.0 gapic/15.0.0 grpc/1.42.0","x-goog-request-params":"customer_id=9928077892"} Payload: {"customerId":"9928077892","query":"SELECT metrics.cost_micros FROM campaign WHERE segments.date BETWEEN '2022-06-01' AND '2022-06-13' AND metrics.impressions > 0"}
I, [2022-06-13T15:38:53.292834 #1568] INFO -- : Incoming response (errors):
GRPC::Unavailable(14:Getting metadata from plugin failed with error: #<Signet::AuthorizationError: Authorization failed. Server message:
{
"error": "invalid_grant",
"error_description": "Bad Request"
}>. debug_error_string:{"created":"@1655134733.291585418","description":"Getting metadata from plugin failed with error: #<Signet::AuthorizationError: Authorization failed. Server message:\n{\n "error": "invalid_grant",\n "error_description": "Bad Request"\n}>","file":"src/core/lib/security/credentials/plugin/plugin_credentials.cc","file_line":91,"grpc_status":14}):
called from: /home/deploy/.rvm/gems/ruby-2.7.5/gems/activesupport-6.0.3.2/lib/active_support/logger_thread_safe_level.rb:53:in `add'
W, [2022-06-13T15:38:58.328831 #1568] WARN -- : CID: 9928077892, Host:
googleads.googleapis.com:443, Method: /google.ads.googleads.v9.services.GoogleAdsService/Search, IsFault: yes, Request ID:
I, [2022-06-13T15:38:58.329032 #1568] INFO -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"3661020287","x-goog-api-client":"gl-ruby/2.7.5 gccl/15.0.0 gax/0.6.0 gapic/15.0.0 grpc/1.42.0","x-goog-request-params":"customer_id=9928077892"} Payload: {"customerId":"9928077892","query":"SELECT metrics.cost_micros FROM campaign WHERE segments.date BETWEEN '2022-06-01' AND '2022-06-13' AND metrics.impressions > 0"}
I, [2022-06-13T15:38:58.329134 #1568] INFO -- : Incoming response (errors):
GRPC::Unavailable(14:Getting metadata from plugin failed with error: #<Signet::AuthorizationError: Authorization failed. Server message:
{
"error": "invalid_grant",
"error_description": "Bad Request"
}>. debug_error_string:{"created":"@1655134738.328316778","description":"Getting metadata from plugin failed with error: #<Signet::AuthorizationError: Authorization failed. Server message:\n{\n "error": "invalid_grant",\n "error_description": "Bad Request"\n}>","file":"src/core/lib/security/credentials/plugin/plugin_credentials.cc","file_line":91,"grpc_status":14}):
called from: /home/deploy/.rvm/gems/ruby-2.7.5/gems/activesupport-6.0.3.2/lib/active_support/logger_thread_safe_level.rb:53:in `add'
W, [2022-06-13T15:39:04.836459 #1568] WARN -- : CID: 9928077892, Host:
googleads.googleapis.com:443, Method: /google.ads.googleads.v9.services.GoogleAdsService/Search, IsFault: yes, Request ID:
I, [2022-06-13T15:39:04.836762 #1568] INFO -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"3661020287","x-goog-api-client":"gl-ruby/2.7.5 gccl/15.0.0 gax/0.6.0 gapic/15.0.0 grpc/1.42.0","x-goog-request-params":"customer_id=9928077892"} Payload: {"customerId":"9928077892","query":"SELECT metrics.cost_micros FROM campaign WHERE segments.date BETWEEN '2022-06-01' AND '2022-06-13' AND metrics.impressions > 0"}
I, [2022-06-13T15:39:04.836906 #1568] INFO -- : Incoming response (errors):
GRPC::DeadlineExceeded(4:Deadline Exceeded. debug_error_string:{"created":"@1655134744.835871906","description":"Deadline Exceeded","file":"src/core/ext/filters/deadline/deadline_filter.cc","file_line":81,"grpc_status":4}):
called from: /home/deploy/.rvm/gems/ruby-2.7.5/gems/activesupport-6.0.3.2/lib/active_support/logger_thread_safe_level.rb:53:in `add'
Traceback (most recent call last):
/home/deploy/.rvm/gems/ruby-2.7.5/gems/grpc-1.42.0-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:29:in `check_status': 4:Deadline Exceeded. debug_error_string:{"created":"@1655134744.835871906","description":"Deadline Exceeded","file":"src/core/ext/filters/deadline/deadline_filter.cc","file_line":81,"grpc_status":4} (GRPC::DeadlineExceeded)