Get Invoices inexplicably reporting "InvalidArgument"

84 views
Skip to first unread message

Steve Begin

unread,
Dec 11, 2023, 11:22:23 AM12/11/23
to Google Ads API and AdWords API Forum
We have successfully employed the GoogleAds API to make requests and get expected responses for several aspects. However, one aspect is giving an error that does not seem to make sense. When we try Is the C# "Get Invoices" (V15) sample code at ...

https://developers.google.com/google-ads/api/samples/get-invoices?hl=en


... we are told that we are passing an "invalid argument" despite that we feel we have thoroughly verified we are not doing so. Again, only this code sample is problematic, and it calls for very similar parameters as do the other GoogleAds C# sample code we have successfully used.

We are in Development mode (rather than Production mode) and we have been approved for Basic Access.

May you please help us know how we may resolve this?

Here is a little more information regarding the error:

 Message=Status(StatusCode="InvalidArgument", Detail="Request contains an invalid argument.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1701970562.139000000","description":"Error received from peer ipv4:74.125.138.95:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"Request contains an invalid argument.","grpc_status":3}")
  Source=Google.Ads.Gax


Google Ads API Forum Advisor

unread,
Dec 11, 2023, 5:12:44 PM12/11/23
to steveb...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

To further investigate the issue, could you please provide us with the complete API logs (request and response with request-id and request header) and uncropped UI screenshots to further investigate this issue. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

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.!5004Q02qXlV9:ref"

Thanks,
 
Google Logo Google Ads API Team


Steve Begin

unread,
Dec 11, 2023, 5:16:37 PM12/11/23
to Google Ads API and AdWords API Forum
Whereas I have previously trapped the errors and information you have requested for other requests I have made (in finding bugs you verified and fixed), this "Get Invoices" error is not happening in an area that may be trapped that way, unfortunately.

The C# Get Invoices sample code does not seem to make a request the same way others do such that it may be trapped for obtaining those details. If you can show us it working for anybody, or any given sample / demo environment - that would definitely help. Out of about eight requests, this is the only one problematic for us, and again - it takes very similar arguments/parameters.

Steve Begin

unread,
Dec 13, 2023, 4:35:41 PM12/13/23
to Google Ads API and AdWords API Forum
Thank you for your help on this. I was ultimately able to find the culprit in a deeper-down error message that Google Ads logging captured (which did not show in my own c# try/catch).

The culprit was what I had suspected: "Cannot request invoices for a billing setup that is not on monthly invoicing."

I will follow up more with the person who would manage that setting and let them know I had confirmed that prior hunch of mine.

I am all set for this inquiry. Thanks again, especially for your patience.

Google Ads API Forum Advisor

unread,
Dec 13, 2023, 5:55:29 PM12/13/23
to steveb...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

I am glad to hear that you have figured out the issue, please feel free to get back to us if you need any further assistance related to the Google Ads API.
Message has been deleted
Message has been deleted

Steve Begin

unread,
Dec 14, 2023, 8:28:47 AM12/14/23
to Google Ads API and AdWords API Forum
Thank you. As you have offered, if I may please ask one other related question:

Is the eligibility requirement of "minimum of $5000"  referenced at "Apply for monthly invoicing" a per-customer minimum, or does it instead reference the combined total of accounts underneath the manager ID of an advertising agency handling multiple customers (i.e., the manager ID by which we are accessing the API)? In other words, if we have one customer at let's say $10,000 a month consistently, but some others we serve never exceed $3000 monthly - are the later customers under $5000 not able to be set up on monthly invoicing despite that we serve their needs collectively with our customers that do exceed $5000 regularly?

Google Ads API Forum Advisor

unread,
Dec 14, 2023, 1:44:01 PM12/14/23
to steveb...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

By reviewing your concern, I understand that you want to know whether the eligibility requirement applies for a customer account or the combined total of accounts underneath the manager ID. Kindly note that our team can only assist with the technical queries or concerns related to the Google Ads API. Since your query is more related to UI which is outside of our team scope, I would suggest you reach out to the Google Ads Product support team as they are better equipped to assist you on this.

Hope this helps. If you have any more queries related to Google Ads API, please feel free to get back to us.

Steve Begin

unread,
Dec 14, 2023, 2:34:09 PM12/14/23
to Google Ads API and AdWords API Forum
So it here in the forum should anyone else seek the same clarification, I want to add here that chat support just now advised me that "if you are looking to create monthly invoicing application for the ads account, then the minimum spend of $5000 is required for the specific child/ client account individually and not combined together."

I am all set on this specific forum inquiry. Thank you again.

Google Ads API Forum Advisor

unread,
Dec 14, 2023, 10:48:27 PM12/14/23
to steveb...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

If you have any queries related to the Google Ads API, kindly get back to us. Please note that  our team specializes in Google Ads API related concerns and technical implementations only. 
Reply all
Reply to author
Forward
0 new messages