Is it possible to delete rule based userlists through the API?

214 views
Skip to first unread message

li...@finternet-group.com

unread,
Sep 7, 2016, 9:31:10 AM9/7/16
to AdWords API Forum
Hi,

Currently I am only able to set the userlists to closed. Is it possible to delete them entirely?

(My current code:)
$audience         = new \ExpressionRuleUserList();
$audience->id     = $audienceId;
$audience->status = 'CLOSED';

$operation           = new \UserListOperation();
$operation->operand  = $audience;
$operation->operator = 'SET';

$result = $this->audienceService->mutate([$operation]);


Thanks for the help!!

Shwetha Vastrad (AdWords API Team)

unread,
Sep 7, 2016, 1:06:23 PM9/7/16
to AdWords API Forum
Hi Lily,

I'm afraid the REMOVE operator is not supported for the AdwordsUserListService mutate method. You can change the status of the UserList to CLOSED as you have described. Although closed lists aren't deleted, they won't work if they're added to an AdGroup. Closed lists also won't appear as available remarketing lists on the "Interests & remarketing" tab. Other targeting methods (or remarketing lists) in the same AdGroup will work as usual. Once you have set the status of the UserList as CLOSED, you can remove the UserList from targeting your AdGroups using a REMOVE operation through the AdGroupCriterionService.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages