Accessing User lists through a rest endpoint

72 views
Skip to first unread message

Vinod AC

unread,
Feb 10, 2020, 3:39:47 PM2/10/20
to AdWords API and Google Ads API Forum
Hello,

I am a developer testing the google ad's api. I set up both a Production Manager account and Test Manager account successfully. I was able to successfully perform oauth and retrieve a list of customers using the following endpoint. 

I am next trying get a list of available UserLists. I am struggling to find the proper resource URL to retrieve them. I used 

however I am getting a 404 on it. can you point me to the right URL or a document that has list of available endpoints for Google Ads API. 

My final goal is to get 
  1. a list of UserLists
  2. Append a User into one of the lists

Note: I am not using any particular library and I would not like to. Ideally I would like only the resource urls to which I can directly perform a http request (through CURL or postman etc).

Google Ads API Forum Advisor Prod

unread,
Feb 11, 2020, 11:02:37 AM2/11/20
to vinodacti...@gmail.com, adwor...@googlegroups.com

Hello Vinod,

Thank you for reaching out. Please find below the Google Ads API server endpoint where all requests are sent. Please refer to this guide for creating the  request URL to make API calls using the API services. Attached the sample request URL below to get a list of available user lists via API. For your other concern related to adding the members to the user list, it is currently not possible to mutate the members of the user lists via Google Ads API Beta. Our team is already aware of this request. Please keep an eye on our blog post for updates related to this.

End Point: https://googleads.googleapis.com

Request URL: https://googleads.googleapis.com/v2/customers/{customer_id}/userLists:get

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UV0Ode:ref

Gregory Gan

unread,
Apr 26, 2020, 8:50:51 PM4/26/20
to AdWords API and Google Ads API Forum
Hi guys, 

I'm also trying to find a way to list all userLists within my customer account, through preferably using the JSON Google Ads api. I tried to use the Request URL as suggested in the above reply, but seems to now work for v3 and v2 of the google ads api. So I was wondering if you can provide a JSON example or if its not possible with google ads api, perhaps then an example in SOAP:XML for google adwords (if it's also possible with google adwords api).

Cheers,
Greg 

Google Ads API Forum Advisor Prod

unread,
Apr 27, 2020, 3:11:37 PM4/27/20
to gre...@customology.com.au, adwor...@googlegroups.com
Hi Greg,

I will be responding on behalf of my colleague Nikisha. You should still be able to use the following:

End Point: 
https://googleads.googleapis.com
Request URL: https://googleads.googleapis.com/v3/customers/{customer_id}/userLists:get

Make sure your customer_id has no dashes and also that you properly set the request headers as explained here.

If you are able to use a client library, you can also accomplish this from the User List report.

If you are still having issues, please share your request and any errors you received via Reply privately to author so that I can further investigate the issue.

Regards,
Mitchell
Reply all
Reply to author
Forward
0 new messages