500 Internal Error for generate reach forecast

208 views
Skip to first unread message

Charles Fritz

unread,
Oct 10, 2022, 3:10:33 PM10/10/22
to Google Ads API and AdWords API Forum

Request:
customer_id: "4016466092"
campaign_duration {
  duration_in_days: 90
}
targeting {
  age_range: AGE_RANGE_25_34
  genders {
    type_: FEMALE
  }
  genders {
    type_: MALE
  }
  devices {
    type_: CONNECTED_TV
  }
  plannable_location_id: "2840"
}
planned_products {
  plannable_product_code: "CPM_MASTHEAD"
  budget_micros: 500000000000
}
cookie_frequency_cap_setting {
  time_unit: WEEK
  impressions: 2
}
currency_code: "USD"
min_effective_frequency: 1

Full error stack trace:

 warn_incompatible_dep(
2022-10-10 15:07:05 INFO __main__:youtube_reach_curves_task_executor.<module>.706 Starting facebook_reach_curves_task_executor.py in container.
2022-10-10 15:07:10 INFO __main__:youtube_reach_curves_task_executor.fetch_and_write_reach_curves.686 Creating reach curve predictions
Request made: ClientCustomerId: 4016466092, Host: googleads.googleapis.com, Method: /google.ads.googleads.v11.services.ReachPlanService/GenerateReachForecast, RequestId: brT0qeBHuvjesUm2x3mC8A, IsFault: True, FaultMessage: Internal error encountered.
2022-10-10 15:07:25 ERROR __main__:youtube_reach_curves_task_executor.fetch_and_write_reach_curves.699 500 Internal error encountered. [type_url: "type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure"
value: "\022\026brT0qeBHuvjesUm2x3mC8A"
]
Traceback (most recent call last):
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 50, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 216, in __call__
    response, ignored_call = self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 343, in result
    raise self
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 266, in with_call
    return self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 343, in result
    raise self
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 266, in with_call
    return self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 254, in _with_call
    call = self._interceptor.intercept_unary_unary(continuation,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 99, in intercept_unary_unary
    self._handle_grpc_failure(response)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 71, in _handle_grpc_failure
    raise self._get_error_from_response(response)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 957, in with_call
    return _end_unary_response_blocking(state, call, True, None)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.INTERNAL
    details = "Internal error encountered."
    debug_error_string = "{"created":"@1665428839.663065000","description":"Error received from peer ipv6:[2607:f8b0:4004:80a::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"grpc_message":"Internal error encountered.","grpc_status":13}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 688, in fetch_and_write_reach_curves
    ingest_reach_curve(svc)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 308, in ingest_reach_curve
    response = svc.request_reach_curve(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 130, in request_reach_curve
    response: GenerateReachForecastResponse = self.service.generate_reach_forecast(request=request)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/v11/services/services/reach_plan_service/client.py", line 719, in generate_reach_forecast
    response = rpc(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
    return wrapped_func(*args, **kwargs)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 52, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InternalServerError: 500 Internal error encountered. [type_url: "type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure"
value: "\022\026brT0qeBHuvjesUm2x3mC8A"
]
Traceback (most recent call last):
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 50, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 216, in __call__
    response, ignored_call = self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 343, in result
    raise self
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 266, in with_call
    return self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 257, in _with_call
    return call.result(), call
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 343, in result
    raise self
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 266, in with_call
    return self._with_call(request,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 254, in _with_call
    call = self._interceptor.intercept_unary_unary(continuation,
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 99, in intercept_unary_unary
    self._handle_grpc_failure(response)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", line 71, in _handle_grpc_failure
    raise self._get_error_from_response(response)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 241, in continuation
    response, call = self._thunk(new_method).with_call(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 957, in with_call
    return _end_unary_response_blocking(state, call, True, None)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.INTERNAL
    details = "Internal error encountered."
    debug_error_string = "{"created":"@1665428839.663065000","description":"Error received from peer ipv6:[2607:f8b0:4004:80a::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"grpc_message":"Internal error encountered.","grpc_status":13}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 700, in fetch_and_write_reach_curves
    raise err
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 688, in fetch_and_write_reach_curves
    ingest_reach_curve(svc)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 308, in ingest_reach_curve
    response = svc.request_reach_curve(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/src/models/youtube_reach_curves/youtube_reach_curves_task_executor.py", line 130, in request_reach_curve
    response: GenerateReachForecastResponse = self.service.generate_reach_forecast(request=request)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/ads/googleads/v11/services/services/reach_plan_service/client.py", line 719, in generate_reach_forecast
    response = rpc(
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
    return wrapped_func(*args, **kwargs)
  File "/Users/charlesfritz/Documents/dev/vampy-partner-integrations-etl/.venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 52, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InternalServerError: 500 Internal error encountered. [type_url: "type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure"
value: "\022\026brT0qeBHuvjesUm2x3mC8A"
]

Please let me know if there is anything else I need to supply.

Google Ads API Forum Advisor

unread,
Oct 10, 2022, 3:17:41 PM10/10/22
to cfr...@videoamp.com, adwor...@googlegroups.com

Hi Charles,

Thank you for reaching out to us.

Upon seeing the provided logs, it appears that you have encountered an internal error. This error occurs when something unexpected happened while processing the request and the API isn't functioning correctly due to a bug. However, this is transient in nature and the API request will work again when retying it after 30 seconds or some time. That said, please retry your request again to see if this error will still occur.

If the error still persists, you may provide to us the updated complete API logs(request and response with request-id) generated on your end. You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Heidi
Google Ads API Team
 


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