Looking for code snippet as reference or assistance with respect to
"Adding", "Modifying" or, "Deleting" members from an existing Audience.
I've found
https://developers.google.com/adwords/api/docs/samples/python/remarketing#create-and-populate-a-user-list
However, I only wish to populate an existing list. With that, would you
just specify the list_id under the user_list dictionary in the example
below? So it would just be user_list = 'Insert ListId Here' and further
down, user_list_id = result['value']['id'] <-- Pass the actual id in there
as well?
def main(client):
user_list_service = client.GetService('AdwordsUserListService',
'v201809')
user_list = {
'xsi_type': 'CrmBasedUserList',
'name': 'Customer relationship management list #%d' % uuid.uuid4(),
'description': 'A list of customers that originated from email
addresses',
# CRM-based user lists can use a membershipLifeSpan of 10000 to
indicate
# unlimited; otherwise normal values apply.
'membershipLifeSpan': 30,
'uploadKeyType': 'CONTACT_INFO'
}
# Create an operation to add the user list.
operations = [{
'operator': 'ADD',
'operand': user_list
}]
result = user_list_service.mutate(operations)
user_list_id = result['value'][0]['id']
If you're uploading via the API, is hashing information the only option? In
manual uploads, you do not have to.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/0e1f6f1f-b3ef-41ec-916b-41991ce8aa4ao%40googlegroups.com.