RemarketingUserList how to use an existing object of type to create a
LogicalUserList

Here is my code

$userlistService  = $this->user->GetUserListService($this-
>adwords_version);
$userlist_array = array();
foreach ($userlist_ids as $key=>$value){
        $temp_user_list         = new RemarketingUserList();
        $temp_user_list->id = $value;
        $userlist_array[]   = $temp_user_list;
        $temp_user_list = '';
}
$temp_user_list = null;
$UserInterest   = new UserInterest('' , 'UserInterrest_Test' ,
"LESS_THAN_FIVE_HUNDRED");
$LogicalOperand = new LogicalUserListOperand($UserInterest,
$userlist_array);

$LogicalRule = new UserListLogicalRule();
$LogicalRule->operator     = $Operator;
$LogicalRule->ruleOperands = $LogicalOperand;
// userlist -- pixel object
$userlist = new LogicalUserList();
$userlist->name                 = $name;
$userlist->rules                = $LogicalRule;
$userlist->status               = $status;
$userlist->description  = $desc;
$userlist->membershipLifeSpan = $membershipLifeSpan;

                        // pixel operation
$operation = new UserListOperation();
$operation->operand  = $userlist;
$operation->operator = 'ADD';
$operations = array($operation);
print_r($operations);
$result = $userlistService->mutate($operations);
$result = $result->value;
$result = current($result);
echo $result->id;

An exception occurs :[RangeError.TOO_LOW @
operations[0].operand.rules[0].ruleOperands[0].id.id]

Thank you

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to