Hello. I'm currently developing trying to set up a mechanism for populating
a CrmBasedUserList with our registered users using their emails. But after
i've added 1000 users using api and executed a get request i've noticed
that newly added users only increased the sizeForSearch, not size.
E.g.
CrmBasedUserList{accessReason=OWNED, accountUserListStatus=ACTIVE,
dataSourceType=FIRST_PARTY,
dataUploadResult=DataUploadResult{uploadStatus=SUCCESS}, description=,
id=859966721, isEligibleForDisplay=true, isEligibleForSearch=true,
isReadOnly=false, listType=CRM_BASED, membershipLifeSpan=10000,
name=test_gmail, size=1300, sizeForSearch=1900,
sizeRange=ONE_THOUSAND_TO_TEN_THOUSAND,
sizeRangeForSearch=ONE_THOUSAND_TO_TEN_THOUSAND, status=OPEN,
uploadKeyType=CONTACT_INFO, userListType=CrmBasedUserList}
(the 1300 users were previously added without using api)
I'm using a code such as this:
public void addUserToList(String email) {
AdwordsUserListServiceInterface userListService =
userListServiceProvider.getNewUserListService();
Member member = new Member();
member.setHashedEmail(normalizeAndHash(email));
MutateMembersOperation mutateMembersOperation = new
MutateMembersOperation();
MutateMembersOperand mutateMembersOperand = new MutateMembersOperand();
mutateMembersOperand.setUserListId(remarketingUserListId);
mutateMembersOperand.setMembersList(new Member[] {member});
mutateMembersOperation.setOperand(mutateMembersOperand);
mutateMembersOperation.setOperator(Operator.ADD);
try {
userListService.mutateMembers(new MutateMembersOperation[]
{mutateMembersOperation});
} catch (RemoteException ex) {
throw new AdWordsClientException("Caught exception while trying to add
user to adwords users list", ex);
}
}
Couldn't find a reason for this so far. Any suggestions?
Thanks.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/cf468219-ceb5-46e1-902d-08d440f12fb1%40googlegroups.com.