Get All User List IDs Belonging to a Gogole Ads Customer ID

1,527 views
Skip to first unread message

Online Engineering

unread,
Mar 29, 2022, 5:38:42 PM3/29/22
to Google Ads API and AdWords API Forum
Hi there,

May I know if there is any library or query I can use to get the list of the user list IDs which belong to one Google Ads customer ID?

Google Ads API Forum Advisor

unread,
Mar 30, 2022, 2:56:13 AM3/30/22
to onlinesol...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

The get method and any services that exclusively had a get method have been removed, you can check our Release notes for this.

For you to get objects, you can use Search and SearchStream from GoogleAdsService, you may refer to this documentation for more details.

You may also use this user_list report and build a query. Let me know if you have further questions.

Regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ysj5x:ref

Online Engineering

unread,
Mar 30, 2022, 5:46:02 PM3/30/22
to Google Ads API and AdWords API Forum
Hi,

Thanks for the response. I took a look at https://developers.google.com/google-ads/api/docs/concepts/retrieving-objects#making_a_request and found there has to be a query passed to that request. This is where I came from: I could not find the query to retrieve ALL user list IDs associated with an ad account.

Could you suggest such a query is supported?

Online Engineering

unread,
Mar 30, 2022, 5:49:43 PM3/30/22
to Google Ads API and AdWords API Forum
And this is the user list ID I meant

temp.PNG

On Wednesday, March 30, 2022 at 1:56:13 AM UTC-5 adsapi wrote:

Google Ads API Forum Advisor

unread,
Mar 31, 2022, 12:36:05 PM3/31/22
to onlinesol...@gmail.com, adwor...@googlegroups.com
Hello,

You can query the id attribute from the user_list resource. For example, you could use: SELECT user_list.id FROM user_list. You can use the Query Builder tool for assistance in creating other queries.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2Ysj5x:ref

Online Engineering

unread,
Apr 4, 2022, 5:33:07 PM4/4/22
to Google Ads API and AdWords API Forum
Hi support team,

Thanks for the response, but my ask is not really around how to query any id attribute from a user list. Instead, I'm wondering if we can get the user list IDs associated with an ad account. 

For example, in the screenshot attached, user list ID 7165609332 is created for ad account (MCC) ID 123-456-7890. How can I get the ID  7165609332 given ad account ID  123-456-7890?

Hope this ask makes sense...

Google Ads API Forum Advisor

unread,
Apr 5, 2022, 3:46:21 AM4/5/22
to onlinesol...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for your email. I am also a member of the Google Ads API team.

Generally, if you want to retrieve userlist details for an account, you need to use the user_list report, and the user lists belonging to the specified customer-id in the request should then be returned.

That said, could you try generating this report and see if the result is the one that you expected?

If this is not the result you want/expected, to investigate the issue, could you provide the complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ysj5x:ref

Online Engineering

unread,
Apr 5, 2022, 11:44:19 AM4/5/22
to Google Ads API and AdWords API Forum
Thanks very much.

Shanvesh

unread,
Apr 28, 2022, 3:28:29 AM4/28/22
to Google Ads API and AdWords API Forum
hi,


I have also tried to make below search request 


Method: Post
body:  {
"pageSize": 10000,
"query": "SELECT user_list.id, user_list.description FROM user_list"
}

Response: 404 not found

Can  someone please let me know , what is the issue with the request

Thanks,
Shan



Google Ads API Forum Advisor

unread,
Apr 29, 2022, 2:12:36 AM4/29/22
to lsqretar...@gmail.com, adwor...@googlegroups.com
Hi Shan,

Thank you for raising this concern to Google Ads API team.

To investigate the issue, could you provide the complete request and response logs with request ID and request header generated on your end?
Reply all
Reply to author
Forward
0 new messages