Google Ads API suddenly just returns invalid argument (grpc code: 3)

663 views
Skip to first unread message

Anders Klixbull

unread,
Jul 12, 2022, 8:46:34 AM7/12/22
to Google Ads API and AdWords API Forum
Hello!

I am getting stats from google ads api and it has been working fine for a long time, but suddenly today it returns invalid argument for all queries. The same queries worked fine yesterday..
i am using google ads C# .NET library and this in an example query:

SELECT campaign.id,campaign.name,campaign.status, campaign.serving_status,segments.date,metrics.cost_micros,metrics.conversions,metrics.cost_per_conversion,metrics.invalid_clicks FROM campaign WHERE segments.date >=  20210908 AND segments.date <= 20220711 AND campaign.status IN ('ENABLED', 'PAUSED', 'REMOVED')

I get this exception:
{"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an invalid argument.\", DebugException=\"Grpc.Core.Internal.CoreErrorDetailException: {\"created\":\"@1657629584.760000000\",\"description\":\"Error received from peer ipv4:142.251.36.10:443\",\"file\":\"..\\..\\..\\src\\core\\lib\\surface\\call.cc\",\"file_line\":953,\"grpc_message\":\"Request contains an invalid argument.\",\"grpc_status\":3}\")"}

Thanks in advance!
Anders

Google Ads API Forum Advisor

unread,
Jul 12, 2022, 11:30:21 AM7/12/22
to a...@calldorado.com, adwor...@googlegroups.com
Hi Anders,

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

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions. 

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


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