Hello,
We are using Ruby client library for the AdWords API, currently having
issues creating custom combination of existing remarketing list using
LogicalUserList.
Passing multiple Userlist as an array inside rule_operands seems to set
only one of Userlist in the result.
My problem is similar to this question previous asked by someone v201502
version can't set retargeting audience.
<https://groups.google.com/forum/#!searchin/adwords-api/LogicalUserList/adwords-api/odAyeDFBxKw/yX3HvNmlSYUJ>
Please advise on how to pass the parameters in respect to code below.
Thanks.
Code:
user_list_srv = adwords.service(:AdwordsUserListService, :v201509)
operation = {
:operator => 'ADD',
:operand => {
:xsi_type => 'LogicalUserList',
:name => "Retargeting list",
:description => "Custom combination list",
:status => 'OPEN',
:membership_life_span => '30',
:rules => [
{
:operator => 'ANY',
:rule_operands => [
{
:xsi_type=>"UserList",
:id => 185402234
},
{
:xsi_type=>"UserList",
:id => 185402123
},
{
:xsi_type=>"UserList",
:id => 185402755
}
]
}
]
}
}
response = user_list_srv.mutate([operation])
result:
{:list_return_value_type=>"UserListReturnValue",
:value=>[{:id=>"185666666", :is_read_only=>"false", :name=>"Retargeting
list", :description=>"Custom combination list", :status=>"OPEN",
:integration_code=>nil, :access_reason=>"OWNED",
:account_user_list_status=>"ACTIVE", :membership_life_span=>"30",
:list_type=>"LOGICAL", :is_eligible_for_search=>"true",
:user_list_type=>"LogicalUserList", :rules=>{:operator=>"ANY",
:rule_operands=>{:user_list=>{:id=>"185402755", :is_read_only=>"true",
:name=>"Retargeting - Commercial Sales Specialist",
:list_type=>"RULE_BASED", :user_list_type=>"ExpressionRuleUserList",
:rule=>{:groups=>{:items=>{:string_rule_item=>{:key=>{:name=>"url__"},
:op=>"CONTAINS", :value=>"commercial-sales-specialist"}}}},
:"@xsi:type"=>"ns2:ExpressionRuleUserList"}}},
:xsi_type=>"ns2:LogicalUserList"}]}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/e09bfa23-5b78-4035-85e0-28bd29161193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.