Hi
We extended the code using google c# example and populated the customerlists from csv
our csv file contains the following columns to populate email, first name , last name , phone , zip , country
suppose if we have 1000 records in the csv file then we end up adding 3000(1000*3) useridentifier one each for email , phone and address
is there a way to include all the info in one useridentifier , we tried that but it was giving very low parentage of match rate when compares to manual upload using UI
referred google's sample code below , please suggest if there is a way to include all the user info in one identifier that will give the same match rate as manual upload
UserData userDataWithEmailAddress = new UserData()
{
UserIdentifiers = {
new UserIdentifier()
{
// Hash normalized email addresses based on SHA-256 hashing algorithm.
HashedEmail = NormalizeAndHash("
cust...@example.com")
}
}
};
// Creates a second user data based on a physical address.
UserData userDataWithPhysicalAddress = new UserData()
{
UserIdentifiers =
{
new UserIdentifier()
{
AddressInfo = new OfflineUserAddressInfo()
{
// First and last name must be normalized and hashed.
HashedFirstName = NormalizeAndHash("John"),
HashedLastName = NormalizeAndHash("Doe"),
// Country code and zip code are sent in plain text.
CountryCode = "US",
PostalCode = "10011"
}
}
}
};
// [END add_customer_match_user_list_2]
// Creates the operations to add the two users.
return new OfflineUserDataJobOperation[]
{
new OfflineUserDataJobOperation()
{
Create = userDataWithEmailAddress
},
new OfflineUserDataJobOperation()
{
Create = userDataWithPhysicalAddress
}
};
Thanks
Ramakumar