set CrmBasedUserList status to closed

54 views
Skip to first unread message

Stephanie Vance

unread,
Sep 19, 2017, 3:21:06 PM9/19/17
to AdWords API Forum
I am using the python client library and want to use the API to change the status of a CrmBasedUserList from OPEN to CLOSED since the remove operator isn't supported.

I am submitting the following as my list of operations where list_id is of type integer:

[
   
{
       
"operator": "SET",
       
"operand": {
           
"status": "CLOSED",
           
"id": list_id
       
}
   
}
]

I am getting the following error as a response:

[UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ operations[0].operand]

Am I missing something in the operand? I have reviewed the documentation and 'id' is the only required field for the set operator.

Shwetha Vastrad (AdWords API Team)

unread,
Sep 19, 2017, 3:58:06 PM9/19/17
to AdWords API Forum
Hi Stephanie, 

Could you check if this UserList is owned by the AdWords account specified in the clientCustomerId header? Could you enable logging and provide the SOAP request and response log for this operation? Please use Reply privately to author when responding. 

Thanks,
Shwetha, AdWords API Team.

Stephanie Vance

unread,
Sep 22, 2017, 8:30:20 AM9/22/17
to AdWords API Forum
Shwetha,

I wanted to check in and make sure you received my response with the data you requested. I replied privately shortly after you posted your reply.  If you didn't get it I will resend it, otherwise is this still being looked into?

Thanks,
Stephanie

Shwetha Vastrad (AdWords API Team)

unread,
Sep 22, 2017, 10:05:20 AM9/22/17
to adwor...@googlegroups.com
Hi Stephanie, 

I did receive the information you sent. I had responded to you privately. Could you check if you received my message? 

Essentially, you need to specify the type of UserList using "xsi:type". Could you retry the request by modifying the operand as shown below?

{
    'xsi_type': 'CrmBasedUserList',

    "status": "CLOSED",
    'id': list_id
}

Regards,
Shwetha, AdWords API Team.

Stephanie Vance

unread,
Sep 22, 2017, 10:12:04 AM9/22/17
to adwordsapiad...@google.com, AdWords API Forum
Oh sorry i never got your response, I added the xsi type parameter into my request and it worked, thank you for your help!

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/QqxrToy72rY/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/f64a4758-4b00-4e9c-8c22-3884c3fd308e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages