Hi ! I Creating CrmBasedUserList and adding e-mail addresses using the AdWords API. Processing succeeds but status is not updated "uploading...". No matter how many hours.
I saw this page and made it. https://developers.google.com/adwords/api/docs/samples/java/remarketing Is there anything wrong? Thank you and best regards, // code 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); } } public static String getSha256(String target) { MessageDigest md = null; StringBuffer buf = new StringBuffer(); try { md = MessageDigest.getInstance("SHA-256"); md.update(target.getBytes()); byte[] digest = md.digest(); for (int i = 0; i < digest.length; i++) { buf.append(String.format("%02x", digest[i])); } } catch (NoSuchAlgorithmException e) { new RuntimeException(e); } return buf.toString(); } // screen (of japanese) <https://lh3.googleusercontent.com/-2tq-sqggol4/WLWfQcIZGUI/AAAAAAAAA88/7pd5BhZOybkh9ME2HOlG6azazeAht1wQQCLcB/s1600/%25E3%2582%25A2%25E3%2582%25AB%25E3%2582%25A6%25E3%2583%25B3%25E3%2583%2588.jpg> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/6ce00d4e-085c-43c1-813c-ef60e1b253ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
