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,
Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2h0qWj:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/aDi_Q000000000000000000000000000000000000000000000RMMMCE00o1pAyj3xT3q7xJf8wEcLvw%40sfdc.net.