RE: Intermittent failure with Google Ads API

2022-12-09 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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 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/aDi_Q0RMMMCE00o1pAyj3xT3q7xJf8wEcLvw%40sfdc.net.


Intermittent failure with Google Ads API

2022-12-08 Thread Tanishq Hooda
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 - 

[2022-12-08 14:24:29,518] {{logging_mixin.py:112}} INFO - [2022-12-08 
14:24:29,517] {{logging_interceptor.py:267}} INFO - Request
---
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=4059920229"
}
Request: customer_id: "4059920229"
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
---
Headers: {
  "google.ads.googleads.v10.errors.googleadsfailure-bin": 
"\nA\n\u0002P\u0004\u0012;A transient internal error has occurred. Retry 
the request.\u0012\u0016vVM-s3QGQi9FLDvQ86VWZQ",
  "grpc-status-details-bin": "\b\r\u0012\u001bInternal error 
encountered.\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure\u0012[\nA\n\u0002P\u0004\u0012;A
 
transient internal error has occurred. Retry the 
request.\u0012\u0016vVM-s3QGQi9FLDvQ86VWZQ",
  "request-id": "vVM-s3QGQi9FLDvQ86VWZQ"
}
Fault: {
  "created": "@1670509469.517541245",
  "description": "Error received from peer ipv4:172.253.122.95:443",
  "file": "src/core/lib/surface/call.cc",
  "file_line": 1066,
  "grpc_message": "Internal error encountered.",
  "grpc_status": 13
}




[2022-12-08 14:11:36,608] {{logging_mixin.py:112}} INFO - [2022-12-08 
14:11:36,608] {{logging_interceptor.py:267}} INFO - Request
---
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
---
Headers: {
  "google.ads.googleads.v10.errors.googleadsfailure-bin": 
"\nA\n\u0002P\u0004\u0012;A transient internal error has occurred. Retry 
the request.\u0012\u0016hi2w2fw16nuqbOZ_GME5-A",
  "grpc-status-details-bin": "\b\r\u0012\u001bInternal error 
encountered.\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure\u0012[\nA\n\u0002P\u0004\u0012;A
 
transient internal error has occurred. Retry the 
request.\u0012\u0016hi2w2fw16nuqbOZ_GME5-A",
  "request-id": "hi2w2fw16nuqbOZ_GME5-A"
}
Fault: {
  "created": "@1670508696.602557205",
  "description": "Error received from peer ipv4:172.253.122.95:443",
  "file": "src/core/lib/surface/call.cc",
  "file_line": 1066,
  "grpc_message": "Internal error encountered.",
  "grpc_status": 13
}

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/df1d8192-818a-4e7b-a55a-690a0b020153n%40googlegroups.com.