Re: Trying to send AdWords invitation [php]

2018-03-21 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum
Hi, The NOT_AUTHORIZED error occurs when the user authenticating the request is not authorized to perform this operation. Only users with Administrative a

Re: Trying to send AdWords invitation [php]

2018-03-21 Thread Best Dev
Hello, I can send an invitation to the customer account using Manager account. but at this moment, I am not sure how I can accept pending invitation. I used Oauth2 and can get Access token. I am struggling to accept the invitation but I am still getting [ManagedCustomerServiceError.NOT_AUTHOR

Re: Trying to send AdWords invitation [php]

2017-06-23 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
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();

Re: Trying to send AdWords invitation [php]

2017-06-23 Thread Mihai Iliescu
This code returned [OperatorError.OPERATOR_NOT_SUPPORTED @ operations[0], RequiredError.REQUIRED @ operations[0].operand, RequiredError.REQUIRED @ operations[0].operator] because operation is undefined. So I adjusted the code as bellow, only to have the same error again: [ManagedCustomerServic

Re: Trying to send AdWords invitation [php]

2017-06-23 Thread Mihai Iliescu
This code returned [OperatorError.OPERATOR_NOT_SUPPORTED @ operations[0], RequiredError.REQUIRED @ operations[0].operand, RequiredError.REQUIRED @ operations[0].operator] because operation is undefined. So I adjusted the code as bellow, only to have the same error again: [ManagedCustomerServic

Re: Trying to send AdWords invitation [php]

2017-06-22 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, You need to provide just the LinkOperation when you use the ManagedCustomerService.mutateLink()

Trying to send AdWords invitation [php]

2017-06-22 Thread Mihai Iliescu
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