How to get List of users under a specific ads Account

94 views
Skip to first unread message

Sashank Gunda

unread,
Jul 1, 2021, 4:29:20 AM7/1/21
to AdWords API and Google Ads API Forum
We are able to fetch the Users under an Ads account using the UI. 

Using this : 
https://developers.google.com/google-ads/api/rest/reference/rest/v8/customers/listAccessibleCustomers 
we get the customers

And now we want to fetch the List of users under each Account.

tried this  https://developers.google.com/google-ads/api/rest/reference/rest/v8/customers.customerUserAccesses/get?hl=en 

but it requires a userId 
ads_test.png

So Want to know If there is an API for Listing the UserAccesses under a single Ads Account. 

Google Ads API Forum Advisor

unread,
Jul 6, 2021, 4:52:30 AM7/6/21
to sashan...@zluri.com, adwor...@googlegroups.com
Hi Sashank,

You can refer to this guide on how you can retrieve the users (customer_user_access.email_address) under a specific ads account. The userId that you are seeing in the documentation is returned with the resource name field, and individually, is an output only field and is not required when fetching the list of users.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JXnmL:ref

Sashank Gunda

unread,
Jul 7, 2021, 9:38:25 AM7/7/21
to AdWords API and Google Ads API Forum
Thank you for the Response.

This Solution restricts us to use either the client libraries which doesn’t include node libraries nor does it have a REST API endpoint.

 Can you provide an Alternative Solution either using node SDK or a REST API endpoint ?

Google Ads API Forum Advisor

unread,
Jul 12, 2021, 10:15:42 AM7/12/21
to sashan...@zluri.com, adwor...@googlegroups.com
Hello,

Currently, there isn't support for a Node client library.

It is generally recommended to use the Search and SearchStream methods instead of GET. You can query the customer user access resource, using either of these methods.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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