Hi Jeremie,

To add new emails to a CrmBasedUserList, use a selector 
<https://developers.google.com/adwords/api/docs/reference/v201603/AdwordsUserListService.Selector>
 like 
the one below to get the Id of the User List you want to update.

            <serviceSelector>
                <fields>Id</fields>
                <fields>Name</fields>
                <fields>ListType</fields>
                <predicates>
                    <field>Name</field>
                    <operator>EQUALS</operator>
                    <values>ListName</values>
                </predicates>
            </serviceSelector> 

Once you have the Id, you can add emails to the user list using the Id 
retrieved above using a Mutate operation 
<https://developers.google.com/adwords/api/docs/reference/v201603/AdwordsUserListService.MutateMembersOperation>
 as 
described below:

       <mutateMembers>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <userListId>UserListId</userListId>
                    <dataType>EMAIL_SHA256</dataType>
                    <members>HashedEmailAddress1</members>
                    <members>HashedEmailAddress2</members>
                    <members>HashedEmailAddress3</members>
                </operand>
            </operations>
        </mutateMembers>

This is how the SOAP request should look like. You can use the client 
libraries <https://developers.google.com/adwords/api/docs/clientlibraries> 
to achieve the same result.

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/73c9d8d1-83be-4446-947f-215127d96b60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to