Type: request_error Code: UNKNOWN.

43 views
Skip to first unread message

Samir Sabri

unread,
Mar 7, 2023, 7:54:59 AM3/7/23
to Google Ads API and AdWords API Forum
Hello

We are experiencing error Type: request_error    Code: UNKNOWN.
when accessing ads reporting.

Sample of our code

```
@start_date = "2023-03-07" @end_date = "2023-03-07" @customer_id = '1234567890' query = <<~QUERY SELECT metrics.cost_micros FROM customer WHERE segments.date >= '#{@start_date}' AND segments.date <= '#{@end_date}' QUERY @google_ads_service = RMDLGoogleAdsClient.service.google_ads response = @google_ads_service.search_stream(customer_id: @customer_id.to_s, query: query )
```

It was working fine for months, but we start getting that error.

Your support is highly appreciated.

Google Ads API Forum Advisor

unread,
Mar 7, 2023, 11:21:32 AM3/7/23
to as3...@gmail.com, adwor...@googlegroups.com

Hi Samir,

Thanks for reaching out to Google Ads API Support.

I see that you encountered an error while accessing ads reporting. Can you provide the complete request and response logs with request ID generated as shown in the respective links? We do this to check if there’s an error thrown on your side and we can further investigate. 

If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

You may then send the requested logs via the Reply privately to author option. If the reply privately option is not available, you can send your logs directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo Google Ads API Team


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