I have the same problem as you. Have you solved it

在 2016年12月15日星期四 UTC+8下午4:57:06,Vladimir Tatarsky写道:
>
> Hi guys, I've just tried to move account from one manager to another just 
> how it's described in the docs, but got the weird error:
>
> [ManagedCustomerServiceError.CANNOT_MOVE_CLIENT_OUTSIDE_TREE @ operations[
> 0]]
>
> Problem is that I can't even find this error anywhere on Internet!
>
> I use this PHP code:
>
>     public function moveManagedAccount($clientCustomerId, 
> $oldManagerCustomerId, $newManagerCustomerId)
>     {   
>         $masterAccountId = 
> $this->getMasterAccount()->getClientCustomerId(); // master account is our 
> main MCC account with credentials
>
>         $managedCustomerService = 
> $this->_getService('ManagedCustomerService', $masterAccountId);
>
>         $operation = new \MoveOperation();
>         $operation->oldManagerCustomerId = $oldManagerCustomerId;
>         $operation->operator = 'SET';
>
>         $link = new \ManagedCustomerLink();
>
>         $link->clientCustomerId = $clientCustomerId;
>         $link->linkStatus = 'ACTIVE';
>         $link->managerCustomerId = $newManagerCustomerId;
>
>         $operation->operand = $link;
>         
>         $operations = [$operation];
>
>         return $managedCustomerService->mutateManager($operations);
>     }
>
> I hope you can answer me ASAP, it's becoming very urgent...
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bcd3b621-5d89-4219-9ce7-31cac7e82ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to