public void AddAudienceMembers(AdwordsUserListService userListService, long audienceId, string email, string userId) { List<Member> memberList = new List<Member>(email.Length);
Member member = new Member(); member.hashedEmail = Hash(Normalise(email[i])); member.userId = userId; memberList.Add(member); MutateMembersOperation mutateMembersOperation = new MutateMembersOperation() { operand = new MutateMembersOperand { userListId = audienceId, membersList = memberList.ToArray() }, @operator = Operator.ADD }; // Add members to the user list based on email addresses. MutateMembersReturnValue mutateMembersResult = userListService.mutateMembers(new MutateMembersOperation[] { mutateMembersOperation }); mutateMembersResult.Dump(); } Specifying the userId here causes the following error: operations[0].operand.membersList[0].userId NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API >From the documentation on https://developers.google.com/adwords/api/docs/reference/v201708/AdwordsUserListService.Member#userid I was under the impression that only addressInfo was for whitelisted customers. This sample was modified from googleads-dotnet-lib\examples\AdWords\csharp\v201708\Remarketing\AddCrmBasedUserList.cs Thanks for any insights you may add. Andy Clarke -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/85f5d5b8-246b-4068-bbec-f4188d9398fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.