Email suppression in CampaignCriterion

5 views
Skip to first unread message

guser123

unread,
Nov 30, 2017, 4:20:53 AM11/30/17
to AdWords API Forum
Hello All

As part of Campaign upload, we are using CampaignCriterionService service. 

E.g. Month 1 - we upload 100 emails for a campaign.

The next month we decided to suppress 50 for the above 100 emails and then upload another set of 50 emails. 

Output - 100 - 50(to be removed) + 50 (new)  emails for the campaign 

 We would like to whether the same service can be used to suppress the emails (with different parameter ) 

Kindly advise

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Nov 30, 2017, 12:06:56 PM11/30/17
to AdWords API Forum
Hi, 

You will need to create the user list using AdWordsUserListService and then can add the audiences using the AdWordsUserListService.mutateMembers(). The AddCrmBasedUserList Java example shows how to add a user list and upload members to the list. Once you have the user lists created, you will need to use the CampaignCriterionService to set the user list as a targeting criteria to the campaign. The AddCampaignTargetingCriteria sample shows how to add a campaign targeting criteria in Java. Code samples in other languages are also available here.

To add or remove the users, you can perform AdWordsUserListService.mutateMembers() and then do a REMOVE or ADD with the memberList populated with the members that you need to remove or add. Please let me know if you have any additional questions. 

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