Hi, I am trying to extend an invitation to client account from manager account through API, But i got the below mentioned error:
Uncaught exception 'Google\AdsApi\AdWords\v201710\cm\ApiException' with message '[ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]]' in /opt/lampp/htdocs/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39 Stack trace: #0 /opt/lampp/htdocs/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array) #1 /opt/lampp/htdocs/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(173): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[ManagedCustome...') #2 /opt/lampp/htdocs/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(138): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault)) #3 /opt/lampp/htdocs/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201710/mcm/ManagedCustomerService.php(185): Google\AdsApi\Common\AdsSoapClient->__soapCall('mutateLi in */..vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php* on line *39* My code snippet is: (PHP) $managedCustomerService = $adWordsServices->get($session, ManagedCustomerService::class); $link = new ManagedCustomerLink(); $link->setClientCustomerId(XXXXXXXXX); $link->setManagerCustomerId(XXXXXXXXXXX); $link->setLinkStatus(LinkStatus::PENDING); //$linkop->setOperand($link); //$linkop->setOperator(Operator::SET); $linkop = new LinkOperation(); $linkop->setOperator(Operator::ADD); $linkop->setOperand($link); $operations[] = $linkop; $result = $managedCustomerService->mutateLink($operations); Can you please suggest me how to rectify it so that i can invite clients to MCC account. Regards, Djax Developer. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/1ca0b63f-bc64-41b5-b3cf-5cce9fc96281%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.