Get all customers userLists ID's via Ads Rest API?

648 views
Skip to first unread message

Greg Parks

unread,
Nov 2, 2021, 8:19:23 PM11/2/21
to AdWords API and Google Ads API Forum
I'm currently using the Google Ads API's REST interface and see there's a method to fetch an individual customer's userList via the following endpoint.

GET https://googleads.googleapis.com/v8/{resourceName=customers/*/userLists/*}

I'm wondering if there's a similar method to fetch a list of all customer's current userLists? I only need their ID's but I'm not seeing anything in the documentation.

I see a method to retrieve all userLists using this Scripts snippet. Is there a way that I can leverage this script programmatically via a rest API request? Unfortunately, the request must be via the Google Ads API's REST interface as there currently isn't a Golang client available.

Any help is greatly appreciated, thanks!

Google Ads API Forum Advisor

unread,
Nov 3, 2021, 1:58:15 PM11/3/21
to greg....@ketch.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us.

You may use the user_list report in order to fetch a list of all the customer's current userLists. You may use the search method in the REST interface to get the user_list report. You may refer to this guide for a search method example using REST. Also, you can make use of Query Builder and Query Validator to help you construct and validate queries.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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