Hi Tanishq,
Thanks for reaching out to the Google Ads API Forum.
I have tried to reproduce this error, and I was not able to reproduce it on my end. Note that when something unexpected happens while processing the request then that request may get an INTERNAL_ERROR. That said, it is a transient error as your request headers printed this message. For this we recommend waiting for about 30 seconds, then retry the request. Also, make sure that you are not sending API requests aggressively and ensuring that you have an exponential backoff policy when retrying requests.
In addition, I had to delete your post as it contained complete logs. Note that posting complete logs on the forum is not recommended. You may always send your complete logs privately to our team. For your reference, I’ve pasted below:
“Hi Team,
We have been noticing that Google Ads API has been unstable and there have been intermittent failures when we fetch data from the API. Could you please check this since it is impacting our production application? I'm sharing 2 failure logs -
-------
Method: /google.ads.googleads.v10.services.GoogleAdsService/SearchStream
Request: customer_id: "**"
query: "SELECT customer.descriptive_name,\ncampaign.id,\ncampaign.name,\ncampaign.status,\nad_group.id,\nad_group.name,\nad_group.status,\nsearch_term_view.status,\nmetrics.clicks,\nmetrics.conversions,\nmetrics.cost_micros,\nsegments.date,\nsegments.day_of_week,\nsegments.device,\nmetrics.impressions,\nsegments.keyword.info.text,\nsegments.keyword.ad_group_criterion,\nsegments.month,\nsegments.ad_network_type,\nsearch_term_view.search_term,\nsegments.week,\nsegments.year FROM search_term_view WHERE segments.date = \'2022-12-06\'"
Response
-------
{
"file_line": 1066,
"grpc_message": "Internal error encountered.",
"grpc_status": 13
}
Method: /google.ads.googleads.v10.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
"developer-token": "REDACTED",
"login-customer-id": "5464537117",
"x-goog-api-client": "gl-python/3.7.15 grpc/1.38.1 gax/1.31.5 gccl/16.0.0",
"x-goog-request-params": "customer_id=4700016696"
}
Request: customer_id: "4700016696"
query: "SELECT customer.descriptive_name,\ncampaign.id,\ncampaign.name,\ncampaign.status,\nad_group.id,\nad_group.name,\nad_group.status,\nsearch_term_view.status,\nmetrics.clicks,\nmetrics.conversions,\nmetrics.cost_micros,\nsegments.date,\nsegments.day_of_week,\nsegments.device,\nmetrics.impressions,\nsegments.keyword.info.text,\nsegments.keyword.ad_group_criterion,\nsegments.month,\nsegments.ad_network_type,\nsearch_term_view.search_term,\nsegments.week,\nsegments.year FROM search_term_view WHERE segments.date = \'2022-12-06\'"
Response
-------
Fault: {
"file_line": 1066,
"grpc_message": "Internal error encountered.",
"grpc_status": 13
}
Thanks!”
Regards,
|
||||||