Hello,
So I've been using the Python SDK to create and populate CRM based user lists. It works great with emails and phones separately, but it doesn't seem to work when I try with both.
I am testing with 3 lists, containing the same users :
- 1 with only their hashed mails
- 1 with only their hashed phone numbers
- 1 with both their hashed mails and hashed phone numbers
When I populate using the users and only 1 key (either mail or phone), everything goes smoothly and the audience gets populated after a few hours, as usual.
But when I populate the audience with both "hashedEmail" and "hashedPhoneNumber" keys, even though the requests work without errors (exactly the same as when I populate the audience with a single key), the audience never populates.
Is it possible to populate an audience with multiple CONTACT_INFO keys (preferably using the python SDK) ? If it is, how ?
More details
API version : v201806
I use this to create the CRM based audience, it does create the audience correctly
user_list = {
'xsi_type': 'CrmBasedUserList',
'name': 'A name',
'description': 'A description',
'uploadKeyType': 'CONTACT_INFO'
}
operations = [{
'operator': 'ADD',
'operand': user_list
}]
client.GetService('AdwordsUserListService', 'v201806').mutate(operations)
Then I add the users like this:
mutate_members_operation = {
'operand': {
userListId : 123456789,
membersList : [
{ 'hashedEmail': 'hashedEmailValue1', 'hashedPhoneNumber': 'hashedPhoneNumberValue1' },
{ 'hashedEmail': 'hashedEmailValue2', 'hashedPhoneNumber': 'hashedPhoneNumberValue2' },
etc.
]
},
'operator': 'ADD'
}
client.GetService('AdwordsUserListService', 'v201806').mutateMembers([mutate_members_operation])
Again, everything goes smoothly, no errors. But the audience never populates.
I also tried formatting my memberList like this:
{
[...]
membersList : [
{ 'hashedEmail': 'hashedEmailValue1' },
{ 'hashedPhoneNumber': 'hashedPhoneNumberValue1' },
{ 'hashedEmail': 'hashedEmailValue2' },
{ 'hashedPhoneNumber': 'hashedPhoneNumberValue2' }
etc.
]
[...]
}
So basically using only one-key dicts, again, no errors, but still the audience never populates.
Thank you in advance,
Tristan