Hi Jia,

My apologies as I cannot comment further as to why the 
AdwordsUserListService.mutate() does not support the REMOVE operator. If 
you wish to delete the userlist object, you may do so via the AdWords UI.

Best regards,
Peter
AdWords API Team

On Monday, November 19, 2018 at 11:37:28 AM UTC+8, jia zheng wrote:
>
>
> Yes, I would like to delete the UserLIST instead of CLOSE. I found that it 
> can be removed with AD UI, but why doesn't the API support REMOVE
> 在 2018年11月16日星期五 UTC+8下午6:51:14,Peter Oliquino (AdWords API Team)写道:
>>
>> Hi Jia,
>>
>> My apologies if I misunderstood your concern. Are you trying to delete a 
>> userlist 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.UserList>
>>  or 
>> a member 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.Member>?
>>  
>> If you are trying to delete a userlist, you will need to use the 
>> AdwordsUserListService.mutate() 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService#mutate>
>>  method. 
>> You may take note, however, that the *REMOVE* operator is not supported. 
>> You will need to use the *SET* operator instead and change the Status 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.UserList#status>
>>  to *CLOSED*.
>>
>> As for the membersList 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.MutateMembersOperand#memberslist>,
>>  
>> this normally contains all of your members 
>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.Member>
>>  along 
>> with their (hashed) email addresses or other user related information you 
>> wish to target.
>>
>> Thanks and regards,
>> Peter
>> AdWords API Team
>>
>> On Friday, November 16, 2018 at 6:01:27 PM UTC+8, jia zheng wrote:
>>>
>>> I only delete one, not all, what should I do?userListId 、membersList  What 
>>> data is being filled in ?
>>> 在 2018年11月16日星期五 UTC+8下午4:22:58,Peter Oliquino (AdWords API Team)写道:
>>>>
>>>> Hi Jia,
>>>>
>>>> My apologies as we currently do not have a sample code or XML for what 
>>>> you wish to achieve. However, in your request, it appears that you also 
>>>> need to include the removeAll 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.MutateMembersOperand#removeall>
>>>>  field 
>>>> in your request in order to remove your members from your userlist.
>>>>
>>>> Best regards,
>>>> Peter
>>>> AdWords API Team
>>>>
>>>> On Friday, November 16, 2018 at 4:01:10 PM UTC+8, jia zheng wrote:
>>>>>
>>>>> When I send the following request,
>>>>> <v:mutate xmlns="https://adwords.google.com/api/adwords/rm/v201802";>
>>>>> <v:operations>
>>>>> <v1:operator>REMOVE</v1:operator>
>>>>> <v:operand xsi:type="LogicalUserList">
>>>>> <v:id>736723026</v:id>
>>>>> </v:operand>
>>>>> </v:operations>
>>>>> </v:mutate></x:Body></x:Envelope>
>>>>>
>>>>>  return
>>>>>
>>>>> [{"faultcode":["soap:Client"],"faultstring":["[OperatorError.OPERATOR_NOT_SUPPORTED
>>>>>  
>>>>> @ operations[0]]"],"detail":[{"ApiExceptionFault":[{"$":{"xmlns":"
>>>>> https://adwords.google.com/api/adwords/cm/v201802","xmlns:ns2":";
>>>>> https://adwords.google.com/api/adwords/rm/v201802"},"message":["[OperatorError.OPERATOR_NOT_SUPPORTED
>>>>>  
>>>>> @ 
>>>>> operations[0]]"],"ApplicationException.Type":["ApiException"],"errors":[{"$":{"xmlns:xsi":"
>>>>> http://www.w3.org/2001/XMLSchema-instance
>>>>> ","xsi:type":"OperatorError"},"fieldPath":["operations[0]"],"fieldPathElements":[{"field":["operations"],"index":["0"]}],"trigger":[""],"errorString":["OperatorError.OPERATOR_NOT_SUPPORTED"],"ApiError.Type":["OperatorError"],"reason":["OPERATOR_NOT_SUPPORTED"]}]}]}]}]
>>>>>
>>>>>
>>>>> When I send the following request,
>>>>> <v:mutateMembers>
>>>>> <v:operations>
>>>>> <v:operator>REMOVE</v:operator>
>>>>> <v:operand xmlns:ns8="
>>>>> https://adwords.google.com/api/adwords/rm/v201802";>
>>>>> <v:userListId>736723029</v:userListId>
>>>>> </v:operand>
>>>>> </v:operations>
>>>>> </v:mutateMembers></x:Body></x:Envelope>
>>>>>
>>>>> return
>>>>>
>>>>> [{"faultcode":["soap:Client"],"faultstring":["[OperatorError.OPERATOR_NOT_SUPPORTED
>>>>>  
>>>>> @ operations[0], RequiredError.REQUIRED @ operations[0].operator]"],
>>>>> "detail":[{"ApiExceptionFault":[{"$":{"xmlns":"
>>>>> https://adwords.google.com/api/adwords/cm/v201802","xmlns:ns2":";
>>>>> https://adwords.google.com/api/adwords/rm/v201802"},
>>>>> "message":["[OperatorError.OPERATOR_NOT_SUPPORTED @ operations[0], 
>>>>> RequiredError.REQUIRED @ 
>>>>> operations[0].operator]"],"ApplicationException.Type":["ApiException"],
>>>>> "errors":[{"$":{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance
>>>>> ","xsi:type":"OperatorError"},"fieldPath":["operations[0]"],"fieldPathElements":[{"field":["operations"],
>>>>>
>>>>> "index":["0"]}],"trigger":[""],"errorString":["OperatorError.OPERATOR_NOT_SUPPORTED"],"ApiError.Type":["OperatorError"],"reason":["OPERATOR_NOT_SUPPORTED"]},
>>>>> {"$":{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance
>>>>> ","xsi:type":"RequiredError"},"fieldPath":["operations[0].operator"],
>>>>>
>>>>> "fieldPathElements":[{"field":["operations"],"index":["0"]},{"field":["operator"]}],"trigger":[""],"errorString":["RequiredError.REQUIRED"],"ApiError.Type":["RequiredError"],"reason":["REQUIRED"]}]}]}]}]
>>>>>
>>>>> How do I delete an audience? Can you give an example of XML?
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/1334cbe7-2b8a-4895-a306-f3e93c742b7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... jia zheng
      • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
        • ... jia zheng
          • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to