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 [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/3c9dce9a-692c-4e4a-8003-23db8df1af0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.