Skip to content

ads api send invitations to other managed accounts or just receive? #600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Claudio-code opened this issue Jul 2, 2019 · 4 comments
Closed
Assignees
Labels

Comments

@Claudio-code
Copy link

No description provided.

@Claudio-code Claudio-code changed the title ads api send invitations to be managed or just receive? ads api send invitations to other managed accounts or just receive? Jul 2, 2019
@fiboknacky fiboknacky self-assigned this Jul 3, 2019
@fiboknacky fiboknacky added the P2 label Jul 3, 2019
@fiboknacky
Copy link
Member

I don't get what you asked. Could you please include more details?

@Claudio-code
Copy link
Author

I would like to make this call in php

ex:

LinkOperation linkOp = new LinkOperation();
ManagedCustomerLink link = new ManagedCustomerLink();
link.setClientCustomerId(CLIENT_CID);
link.setLinkStatus(LinkStatus.PENDING);
link.setManagerCustomerId(MANAGER_CID);
linkOp.setOperand(link);
linkOp.setOperator(Operator.ADD);
managedCustomerService.mutateLink(new LinkOperation[]{linkOp});

@Claudio-code
Copy link
Author

this code in php returns the error

Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]] in /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43 Stack trace: #0 /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array) #1 /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202): Google\AdsApi\Common\Util\Reflection->createInstance('Google\AdsApi\A...', Array) #2 /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault)) #3 /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/mcm/ManagedCustomerService.php(185 in /var/www/html/trabalho/googleAds/Api/src/libs/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

@fiboknacky
Copy link
Member

You get an NOT_AUTHORIZED error, probably because you have no sufficient permission to send this request.

As this is related to the AdWords API in general, please post your question on its forum instead.
Please note that attaching your full SOAP logs would speed up the investigation as well.

Cheers,
Knack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants