Thank you for replying.
(Sorry I'm bad at English, google translation is wonderful !!)

>Did you use the removeAll field of MutateMembersOperand to remove all 
members of a CrmBasedUserList? If so, is it taking more than 24 hours to 
process?
That's right.
In order to make the list always fresh, I delete it every time and add it.
When you look at the status with the API, it seems that the deletion 
processing has not ended.(24 hours over)
Is there any good solution?

Process flow
1)removeAll 
2)add email 

1)removeAll 
    public void removeEmailsFromUserList(String refreshToken, String 
customerId, String userListId) throws GoogleException {
        try {
            MutateMembersOperand operand = new MutateMembersOperand();
            operand.setUserListId(Long.valueOf(userListId));
            operand.setRemoveAll(true);

            MutateMembersOperation operation = new MutateMembersOperation();
            operation.setOperand(operand);
            operation.setOperator(Operator.REMOVE);

            AdwordsUserListServiceInterface userListService = 
getUserListService(refreshToken, customerId);

            userListService.mutateMembers(new 
MutateMembersOperation[]{operation});
        } catch (RemoteException e) {
            logger.error("cannot remove emails error={}", e);
            throw new GoogleException(e);
        }
    }
    
    2)add email 
    public void sendEmailAddresses(String refreshToken, String customerId, 
String userListId, List<String> emails) throws GoogleException {
        try {
            MutateMembersOperand operand = new MutateMembersOperand();
            operand.setUserListId(Long.valueOf(userListId));
            operand.setDataType(MutateMembersOperandDataType.EMAIL_SHA256);
            operand.setMembers(emails.stream().map(s -> 
getSha256(s.trim().toLowerCase())).collect(Collectors.toList()).toArray(new 
String[emails.size()]));

            MutateMembersOperation operation = new MutateMembersOperation();
            operation.setOperand(operand);
            operation.setOperator(Operator.ADD);

            AdwordsUserListServiceInterface userListService = 
getUserListService(refreshToken, customerId);

            userListService.mutateMembers(new 
MutateMembersOperation[]{operation});
        } catch (RemoteException e) {
            logger.error("cannot send emais error={}", e);
            throw new GoogleException(e);
        }
    }

2017年3月2日木曜日 2時24分23秒 UTC+9 Nadine Sundquist (AdWords API Team):
>
> Greetings!
>
> Thank you for taking the time to provide all these details. I took a look 
> at all these particular user lists. It looks like all the uploads that you 
> requested were processed. Please keep in mind that it is normal for it to 
> take up to 24 hours for requests to be processed. Based on that status, it 
> looks like you asked for the list to also be cleared and that's in process. 
> Did you request that the list be cleared at some point? Did you use the 
> removeAll 
> <https://developers.google.com/adwords/api/docs/reference/v201702/AdwordsUserListService.MutateMembersOperand#removeall>
>  
> field of MutateMembersOperand to remove all members of a 
> CrmBasedUserList? If so, is it taking more than 24 hours to process?
>
> Thanks,
> Nadine, AdWords API Team
>
> On Tuesday, February 28, 2017 at 10:05:11 PM UTC-5, 竹田祥 wrote:
>>
>> Hi
>>
>> I checked the list status with the API.
>> uploadStatus:SUCCESS
>> removeAllStatus:IN_PROCESS
>>
>> in xml
>> <ns2:uploadStatus>SUCCESS</ns2:uploadStatus>
>> <ns2:removeAllStatus>IN_PROCESS</ns2:removeAllStatus>
>>
>> In this process, deleted the members of the list and added it.
>> Is there a problem with the order of processing?
>>
>> 2017年3月1日水曜日 3時54分26秒 UTC+9 Shwetha Vastrad (AdWords API Team):
>>>
>>> Hi,
>>>
>>> Could you provide your clientCustomerId and the name of the UserList so 
>>> I can take a look? Please note that it may take up to several hours for the 
>>> list to be populated with members. I suggest that you go through the 
>>> caveats associated with CrmBasedUserLists which are provided here 
>>> <https://developers.google.com/adwords/api/docs/guides/remarketing#caveats>.
>>>  
>>>
>>>
>>> Regards,
>>> Shwetha, AdWords API Team.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 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/b64f5294-c79b-4acf-8345-0df06e62d836%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • The status of ... 竹田祥
    • Re: The s... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: T... 竹田祥
      • Re: T... 竹田祥
        • R... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
          • ... 竹田祥
            • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
              • ... 竹田祥
                • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
                • ... 竹田祥
                • ... 竹田祥
                • ... 竹田祥
                • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
                • ... 竹田祥

Reply via email to