Hello, I’m sending you the complete API logs generated while we encounter the error. Please refer to the text file attached.
Regards, Sumin 이수민 선임 / DDM서비스팀 서울특별시 강서구 마곡중앙로8로 71 E13동 7층 010-3500-1181 / sumin...@lgcns.com<mailto:sumin...@lgcns.com> Sumin Lee / Data Driven Marketing Service Team LG CNS Co., Ltd. Seoul, KOREA From: Google Ads API Forum Advisor <adsapi@forumsupport.google> Sent: Thursday, August 22, 2024 9:08 PM To: 이수민 <sumin...@lgcns.com> Cc: adwords-api@googlegroups.com Subject: RE: request failed with status "unavailable" adsapi@forumsupport.google의 전자 메일이 수신되지 않는 경우가 있습니다. 이 문제가 중요한 이유를 알아보세요.<https://aka.ms/LearnAboutSenderIdentification> Hi Sumin, Thank you for reaching out to the Google Ads API support team. I understand that you have encountered the 'UNAVAILABLE' error while utilizing the Google Ads API to get keyword historical metrics using GenerateKeywordHistoricalMetricsRequest<https://developers.google.com/google-ads/api/reference/rpc/v17/GenerateKeywordHistoricalMetricsRequest>. Note that the time of day should not have any impact on the request. So, to assist you further, please provide us with the complete API logs (request<https://developers.google.com/google-ads/api/docs/concepts/field-service#request> and response<https://developers.google.com/google-ads/api/docs/concepts/field-service#response> with request-id<https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> and request header<https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>) generated at your end while you encounter this error. If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java<https://developers.google.com/google-ads/api/docs/client-libs/java/logging>, .Net<https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>, PHP<https://developers.google.com/google-ads/api/docs/client-libs/php/logging>, Python<https://developers.google.com/google-ads/api/docs/client-libs/python/logging>, Ruby<https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging> or Perl<https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag. You can send the details via Reply privately to the author option, or direct private reply to this email. This message is in relation to case "ref:!00D1U01174p.!5004Q02vFEl6:ref" (ADR-00264360) Thanks, [보낸 사람이 제거한 이미지입니다. Google Logo] Google Ads API Team [보낸 사람이 제거한 이미지입니다.] [고객의소리열기]<https://cppm.singlex.com/public/painpointDirects/C998?mediaSource=EMAIL> ________________________________ 상기 메시지와 첨부화일 내에는 비밀정보가 포함되어 있을 수 있으며, 지정된 수신자에 한하여 조회 및 사용될 수 있습니다. 만약 송신자의 실수로 인하여 상기 메시지를 수신하였다면, 송신자에게 메시지를 반송해 주시고, 원본 메시지와 모든 사본을 폐기해 주시기 바랍니다. 상기 메시지의 전체 또는 일부에 대해 무단 열람, 사용, 공개, 배포하는 것은 금지되어 있습니다.(주)LG CNS. This message and its attachments may contain confidential information, and they are intended to be viewed or used by only the individuals specified in the message. If you have received this message in an error from the sender, please contact the sender immediately to notify the error and delete all of the message and its copies. It is prohibited to view, use, make public and/or distribute part or whole of this message without written permission. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords 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/PU4P216MB13692157571299C312202B3FC0882%40PU4P216MB1369.KORP216.PROD.OUTLOOK.COM.
Request made: ClientCustomerId: 6854578764, Host: googleads.googleapis.com, Method: /google.ads.googleads.v16.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics, RequestId: 68fofy-qFbd3zPeD2MZmUQ, IsFault: True, FaultMessage: The request took too long to respond. Traceback (most recent call last): File "/home/etl_dev1/ha_sem_etl_proj/src/api/keyword_planner_api.py", line 108, in get_keyword_historical_metrics response = keyword_plan_service.generate_keyword_historical_metrics( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/google/ads/googleads/v16/services/services/keyword_plan_idea_service/client.py", line 539, in generate_keyword_historical_metrics response = rpc( ^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 131, in __call__ return wrapped_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 76, in error_remapped_callable return callable_(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 277, in __call__ response, ignored_call = self._with_call( ^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 332, in _with_call return call.result(), call ^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 171, in result raise self._exception File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 315, in continuation response, call = self._thunk(new_method).with_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 343, in with_call return self._with_call( ^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 332, in _with_call return call.result(), call ^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 171, in result raise self._exception File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 315, in continuation response, call = self._thunk(new_method).with_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 343, in with_call return self._with_call( ^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/grpc/_interceptor.py", line 329, in _with_call call = self._interceptor.intercept_unary_unary( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/.local/lib/python3.11/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 99, in intercept_unary_unary self._handle_grpc_failure(response) File "/home/etl_dev1/.local/lib/python3.11/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 71, in _handle_grpc_failure raise self._get_error_from_response(response) google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC that terminated with: status = StatusCode.UNAVAILABLE details = "The service is currently unavailable." debug_error_string = "UNKNOWN:Error received from peer ipv4:172.217.161.202:443 {created_time:"2024-08-20T01:10:48.831382186+09:00", grpc_status:14, grpc_message:"The service is currently unavailable."}" >, <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNAVAILABLE details = "The service is currently unavailable." debug_error_string = "UNKNOWN:Error received from peer ipv4:172.217.161.202:443 {created_time:"2024-08-20T01:10:48.831382186+09:00", grpc_status:14, grpc_message:"The service is currently unavailable."}" >, errors { error_code { internal_error: DEADLINE_EXCEEDED } message: "The request took too long to respond." } request_id: "68fofy-qFbd3zPeD2MZmUQ" , '68fofy-qFbd3zPeD2MZmUQ') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/etl_dev1/ha_sem_etl_proj/./main.py", line 63, in <module> extractor.process() File "/home/etl_dev1/ha_sem_etl_proj/src/extractor/extractor.py", line 46, in process api.run() File "/home/etl_dev1/ha_sem_etl_proj/src/api/keyword_planner_api.py", line 216, in run self.process() File "/home/etl_dev1/ha_sem_etl_proj/src/api/keyword_planner_api.py", line 156, in process result, work_done = self.get_keyword_historical_metrics( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/etl_dev1/ha_sem_etl_proj/src/api/keyword_planner_api.py", line 135, in get_keyword_historical_metrics for error in ex.error.details: TypeError: 'method' object is not iterable