Hello,
I'm trying to send invitation using AdWords Api v201702 but I get this error: Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201702\cm\ApiException' with message '[ManagedCustomerServiceError.UNSUPPORTED @ operations[0]]'
I'm using the code bellow, based on the create account PHP sample:
// Create link.
$link = new ManagedCustomerLink();
$link->SetLinkStatus = 'PENDING';
$link->SetManagerCustomerId = 'xxxxxxxxxxx';
$link->SetClientCustomerId = 'xxxxxxxxxxx';
$linkop = new LinkOperation();
$linkop->setOperator(Operator::ADD);
$linkop->setOperand($link);
// Create operation.
$operations = [];
$operation = new ManagedCustomerOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperator($linkop);
$operations[] = $operation;
$result = $managedCustomerService->mutateLink($operations);
----
$operation dump looks like this:
Array
(
[0] => Google\AdsApi\AdWords\v201702\mcm\ManagedCustomerOperation Object
(
[operand:protected] => Google\AdsApi\AdWords\v201702\mcm\LinkOperation Object
(
[operand:protected] => Google\AdsApi\AdWords\v201702\mcm\ManagedCustomerLink Object
(
[managerCustomerId:protected] =>
[clientCustomerId:protected] =>
[linkStatus:protected] =>
[pendingDescriptiveName:protected] =>
[isHidden:protected] =>
[SetLinkStatus] => PENDING
[SetManagerCustomerId] => xxxx
[SetClientCustomerId] => xxxx
)
[operator:protected] => ADD
[OperationType:protected] =>
)
[operator:protected] => ADD
[OperationType:protected] =>
)
)
Can anyone help me with this?