REMOVED user_list is not returned when queried

33 views
Skip to first unread message

vla...@gmail.com

unread,
Sep 1, 2020, 7:05:45 PM9/1/20
to AdWords API and Google Ads API Forum
If the user_List is Enabled it is returned, if it is Removed it's not returned

Query:
`SELECT user_list.name, user_list.resource_name, user_list.rule_based_user_list.expression_rule_user_list.rule.rule_type, user_list.rule_based_user_list.expression_rule_user_list.rule.rule_item_groups, user_list.rule_based_user_list.prepopulation_status FROM user_list WHERE user_list.name='{userListName}'`

This is important for me because when I try to create a list with the name that already exists (but removed), the mutate `Create` operation throws an error. But when I try to retrieve it by its name, it's not found.

Please help.

Google Ads API Forum Advisor Prod

unread,
Sep 2, 2020, 1:01:13 PM9/2/20
to vla...@gmail.com, adwor...@googlegroups.com
Hello,

Removed entities do not return in reports by default. You will need to add a condition to include them explicitly. 

Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q23wUwz:ref

vla...@gmail.com

unread,
Sep 2, 2020, 1:03:02 PM9/2/20
to AdWords API and Google Ads API Forum
Great, what is the condition?

vla...@gmail.com

unread,
Sep 2, 2020, 1:07:26 PM9/2/20
to AdWords API and Google Ads API Forum
I tried `user_list.account_user_list_status IN ('ENABLED','DISABLED')`, that didn't help.

Google Ads API Forum Advisor Prod

unread,
Sep 2, 2020, 4:16:14 PM9/2/20
to vla...@gmail.com, adwor...@googlegroups.com
Hi,

Please add a condition for the field user_list.membership_status

vla...@gmail.com

unread,
Sep 2, 2020, 4:32:45 PM9/2/20
to AdWords API and Google Ads API Forum
Sorry, still nothing. I included user_list.membership_status='CLOSED' and it returned nothing. Also tried  user_list.membership_status IN ('OPEN', 'CLOSED' ), same result.

vla...@gmail.com

unread,
Sep 2, 2020, 5:16:26 PM9/2/20
to AdWords API and Google Ads API Forum
To add, I am not sure the membership_status is relevant here. In the UI I can have enabled audiences with both Open and Closed membership status. The same goes for removed audiences - some have membership status as Open and some as Closed.

Google Ads API Forum Advisor Prod

unread,
Sep 3, 2020, 9:43:07 AM9/3/20
to vla...@gmail.com, adwor...@googlegroups.com
Hello,

Unfortunately, there is no field to give you the status of enabled and removed audiences. I've created a feature request on your behalf. Please follow our blog for updates.
Reply all
Reply to author
Forward
0 new messages