RST_STREAM error while fetching campaign segments even for 1 campaign alone

29 views
Skip to first unread message

Himanshu Patel

unread,
Jun 17, 2024, 3:20:37 AM6/17/24
to Google Ads API and AdWords API Forum
I made below query to get campaign segments. But I get RST_STREAM error in return.

------ QUERY

I, [2024-06-13T13:12:37.279130 #516]  INFO -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"REDACTED","x-goog-api-client":"gl-ruby/3.1.4 gccl/27.0.0 gax/0.21.1 gapic/27.0.0 grpc/1.62.0 pb/3.25.3","x-goog-request-params":"customer_id=REDACTED"} Payload: {"customerId":"REDACTED","query":"SELECT campaign.id, segments.geo_target_city, geographic_view.location_type, geographic_view.country_criterion_id, segments.date, metrics.impressions, metrics.clicks, metrics.cost_micros, metrics.conversions, metrics.all_conversions, metrics.conversions_value, metrics.all_conversions_value, metrics.view_through_conversions, metrics.cross_device_conversions, metrics.video_views, metrics.interactions, metrics.top_impression_percentage, metrics.absolute_top_impression_percentage FROM geographic_view WHERE segments.date BETWEEN '2024-05-01' AND '2024-05-30' AND metrics.impressions > 0 AND campaign.id IN (REDACTED)"}

------ ERROR RESPONSE

I, [2024-06-13T13:12:37.279244 #516]  INFO -- : Incoming response (errors):
  GRPC::Internal(13:Received RST_STREAM with error code 2. debug_error_string:{UNKNOWN:Error received from peer ipv4:74.125.140.95:443 {grpc_message:"Received RST_STREAM with error code 2", grpc_status:13, created_time:"2024-06-13T13:12:37.278635491+00:00"}}):
  called from: /home/deploy/.rvm/gems/ruby-3.1.4/gems/activesupport-6.1.7.7/lib/active_support/logger_thread_safe_level.rb:67:in `add'
*** GRPC::Internal Exception: 13:Received RST_STREAM with error code 2. debug_error_string:{UNKNOWN:Error received from peer ipv4:74.125.140.95:443 {grpc_message:"Received RST_STREAM with error code 2", grpc_status:13, created_time:"2024-06-13T13:12:37.278635491+00:00"}}


Google Ads API Forum Advisor

unread,
Jun 17, 2024, 9:28:55 AM6/17/24
to himansh...@clarisights.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

In order to assist you further, we need the customer ID and campaign ID's that you are using in your query. So, please provide us with the complete API logs (request and response with request-id and request header) generated at your end without redaction.

Since you are using the Ruby client library, if you haven't enabled the logging yet, I would request you to enable it by referring to this guide Ruby.

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.!5004Q02tJM7L:ref" (ADR-00241702)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!


Reply all
Reply to author
Forward
0 new messages