Hi,
I have user lists which I define in an account with shared remarketing tags
from a manager account.
When I use the Web Audience Manager to edit a user list, there is an option
to change the "Tag Source" from "This account" to "Manager account"
However, when I use the API, I couldn't see such an option, and the
UserList is always defined as "This Account"
How can I set a user list's tag source to be manager using the API?
Below is the snippet I use to create the user list
// Create user list
RuleItem website = new RuleItem();
website.setStringRuleItem(generateRuleItem("url__",
StringRuleItemStringOperator.CONTAINS, "marco"));
RuleItemGroup ruleItemGroup = new RuleItemGroup();
ruleItemGroup.setItems(new RuleItem[]{website});
Rule rule = new Rule();
rule.setGroups(new RuleItemGroup[]{ruleItemGroup});
ExpressionRuleUserList expressionRule = new ExpressionRuleUserList();
expressionRule.setRule(rule);
expressionRule.setMembershipLifeSpan(30L);
expressionRule.setPrepopulationStatus(RuleBasedUserListPrepopulationStatus.REQUESTED);
expressionRule.setName("My user list");
// Build add operation
List<UserListOperation> operations = new ArrayList<>();
UserListOperation operation = new UserListOperation();
operation.setOperand(data);
operation.setOperator(Operator.ADD);
operations.add(operation);
// Submit the operations.
UserListReturnValue result = userListService.mutate(operations.toArray(new
UserListOperation[operations.size()]));
Thanks,
Oz
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/f34f46f5-3968-4b09-8d8e-0c7f02aaa27f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.