How get all valid accounts for invoices?

48 views
Skip to first unread message

Александр Чернуха

unread,
Mar 31, 2023, 12:58:08 PM3/31/23
to Google Ads API and AdWords API Forum
We try to get invoice info fo all acounts in our mcc.
But we have a lot of thousands accounts, it will be very slow if we iterate all accounts.
One Invoice can have o lot of account of one Billing setup, but we can't get all billing setups during api restrictions.
Can we get list of valid accounts easier else iterate all accounts?

Google Ads API Forum Advisor

unread,
Mar 31, 2023, 3:31:11 PM3/31/23
to rosenro...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for raising this issue to our team.

Regarding your concern, since this is specifically about getting invoice data, I would recommend checking our Invoice document and this Retrieving invoices guide to know more about this in the Google Ads API. Also, you are asking on how to get a list of valid accounts, you may use this List Accessible Accounts. Listing accessible customers is one of the few requests in the Google Ads API that does not require you to specify a customer ID in the request, and will ignore any supplied login-customer-id. Also, note that the resulting list of customers is based on your OAuth credentials. The request returns a list of all accounts that you are able to act upon directly given your current credentials. 

Regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kDzZc:ref

Александр Чернуха

unread,
Mar 31, 2023, 5:05:54 PM3/31/23
to Google Ads API and AdWords API Forum
Hello! Thanks for your response!
But you understood wrong. We can get all accounts, it isn't a problem.
We ask, how to get only one valid account per invoice (because invoice returns all account data for selected billing setup (invoice)

пятница, 31 марта 2023 г. в 22:31:11 UTC+3, Google Ads API Forum Advisor:

Google Ads API Forum Advisor

unread,
Apr 3, 2023, 3:53:44 AM4/3/23
to rosenro...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for responding back to us. Would you be able to share an uncropped screenshot of the data in UI that you want to retrieve? This will let us have better illustration of your concern and provide precise guidance accordingly. Moreover, kindly share to us your customer ID / CID for further investigation.

You may send the requested details to us privately via "Reply to Author" option. If that option is not available to you, send it to googleadsa...@google.com alias instead.

Regards,

Reply all
Reply to author
Forward
0 new messages