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?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5f998f50-bfc7-4d1f-9c9a-87a10861c6c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.