Hello,

I apologize for the confusion. This feature is restricted to a whitelist. 
We mentioned this in the release notes 
<https://developers.google.com/adwords/api/docs/reference/release-notes/v201708#remarketing>,
 
and I will make sure that we update the documentation accordingly.

Regards,
Mike, AdWords API Team

On Wednesday, August 23, 2017 at 2:43:33 AM UTC-4, Andy Clarke wrote:
>
> 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/b4f0915b-fa60-40bf-a6b6-7f30e1083056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Unexpected erro... Andy Clarke
    • Re: Unexpe... 'Michael Cloonan (AdWords API Team)' via AdWords API Forum

Reply via email to