Hi Mihai,
I tried using the below code snippet to extend an invitation and it worked.
$managedCustomerService = $adWordsServices->get($session,
ManagedCustomerService::class);
$operations = [];
$linkOp = new LinkOperation();
$link = new ManagedCustomerLink();
$link->setManagerCustomerId(MANAGER_CID);
$link->setClientCustomerId(CLIENT_CID);
$link->setLinkStatus("PENDING");
$linkOp->setOperand($link);
$linkOp->setOperator(Operator::ADD);
$operations[] = $linkOp;
$result = $managedCustomerService->mutateLink($operations);
Please note that you need to set the clientCustomerId in the request header
to the ID of your manager account. If this is not successful, please enable
logging <https://github.com/googleads/googleads-php-lib#logging> and send
over the SOAP request and response logs so I can take a look. Please use *Reply
privately to author* when responding.
Regards,
Shwetha, AdWords API Team.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/912629e4-180a-4875-a139-4648d1c085a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.