Listing customer ids

52 views
Skip to first unread message

Kavya Bharathappa

unread,
Feb 24, 2022, 10:45:57 AM2/24/22
to Google Ads API and AdWords API Forum
Hi there, 

I am looking for a way to list the customer ids that come under a account (one used for generating oauth tokens). Following the google ads docs I found that calling the API endpoint  https://googleads.googleapis.com/v10/customers:listAccessibleCustomers, I get resource names that come under the account used for oauth (in my case it returned one resource name that being the oauth account itself). As a next step I am asked to follow the account hierarchy guide to get to the customer ids using the query. As I do not use a standard client library nor I found one suitable for the programming language I use in the backend (elixir), I am quite unsure which Public API am I supposed to call to get the account hierarchy. Any help in this matter is much appreciated. Regards, Kavya

Google Ads API Forum Advisor

unread,
Feb 25, 2022, 3:48:40 PM2/25/22
to kavya.bh...@getmercury.io, adwor...@googlegroups.com
Hi Kavya,

Thanks for reaching out. As you pointed out, we do not currently support a client library for Elixir, so you would have to use the REST interface, and implement your own version of the Get Account Hierarchy sample. It seems the Elixir language has some similarity to Python, so you might be able to use the Python example as a guide.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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