Remove User List from Campaign

41 views
Skip to first unread message

Paul Joy Parayannilam

unread,
Dec 11, 2017, 12:45:14 PM12/11/17
to AdWords API Forum
Team,
I have an existing Adwords account which was manually operated and Im now trying to automate this using the Adwords API. 
There are campaigns where a bunch of user lists were already uploaded manually using the Adwords UI.
Now, is there a way that i can delete all these user lists programatically from the API so that I can upload new user lists to these existing campaigns?
Also, If is there a way to delete these campaigns programatically from API and create new ones? Can we use CampaignCriterionService to achieve both Campaign Maintenaance and USerList maintenance?

Thanks
Paul

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 11, 2017, 5:50:11 PM12/11/17
to AdWords API Forum
Hi Paul, 

Please find my responses inline: 
  1. Now, is there a way that i can delete all these user lists programatically from the API so that I can upload new user lists to these existing campaigns?
  1. You will be able to use the CampaignCriterionService.mutate() and remove the userlist criterion set at the Campaign level. You will need to specify the criterionId and use the REMOVE operator. You could check this sample in Java which adds a campaign criterion for reference and make required updates. 
  1. Also, If is there a way to delete these campaigns programatically from API and create new ones? Can we use CampaignCriterionService to achieve both Campaign Maintenaance and USerList maintenance?
  1. To remove a campaign, you will need to use CampaignService and set the status of that campaign as REMOVED. Please check the RemoveCampaign example in Java for reference. Samples in other languages can be found here. You can use CampaignCriterionService to manage the criterion set at the campaign level. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages