How can I deactivate a CRMBasedUserList using the API?

48 views
Skip to first unread message

George D Elig

unread,
Dec 1, 2017, 10:43:34 PM12/1/17
to AdWords API Forum
Using the Python API, I've created a NegativeCampaign exclusion list. How can I programmatically deactivate/disable that CRMBasedUserList? Closing the userlist prevents new users from being added but I want to stop excluding adds to that user, without requiring a user to log into AdWords.

G David Elig

unread,
Dec 4, 2017, 1:24:28 AM12/4/17
to AdWords API Forum
Here is the code that I wrote, which is returning xsi:type="RequiredError"

criterion = {
'xsi_type': 'CriterionUserList',
'userListId':user_list_id
}

criterion_operation = {
'operator': 'REMOVE',
'operand': {
'campaignId': campaign['id'],
'criterion': criterion
}
}

resp = criterion_service.mutate([criterion_operation])

On Fri, Dec 1, 2017 at 5:43 PM, George D Elig <geo...@infotrustllc.com> wrote:
Using the Python API, I've created a NegativeCampaign exclusion list. How can I programmatically deactivate/disable that CRMBasedUserList? Closing the userlist prevents new users from being added but I want to stop excluding adds to that user, without requiring a user to log into AdWords.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/nayLX2aPqIY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8fdc1b8a-c6e8-4b36-a02c-0a1e15c32678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Oliquino

unread,
Dec 4, 2017, 8:32:39 AM12/4/17
to AdWords API Forum
Hi George,

If you wish to terminate the CrmBasedUserList as your NegativeCampaignCriterion, then, you may do so by using the CampaignCriterionService.mutate() method. You may refer to the NegativeCampaignCriterion documentation which I have linked for the required fields in order to make a successful REMOVE operation.

If the issue persists, you may send to me the generated SOAP request and response so I can further investigate. You may reply via the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages