Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201809\cm\ApiException' with message '[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']'

29 views
Skip to first unread message

SUBIN P VASU

unread,
Mar 19, 2020, 9:04:16 PM3/19/20
to AdWords API and Google Ads API Forum
Hi,

I was trying to connect other adwords account from my adwords account using AdWords API. I have made the connection and got the refresh token. But  I can't connect to the accounts and showing this error. I need help.


Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201809\cm\ApiException' with message '[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']' in /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43 Stack trace: #0 /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array) #1 /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(203): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[AuthorizationE...') #2 /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault)) #3 /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/mcm/CustomerSe in /home/fh9axlrjkvvd/public_html/dev/oauth/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

Google Ads API Forum Advisor Prod

unread,
Mar 20, 2020, 7:18:33 PM3/20/20
to subin...@gmail.com, adwor...@googlegroups.com

Hi SUBIN,

Thank you for reaching out. AuthorizationError.USER_PERMISSION_DENIED occurs when there is no link between the manager account authenticated in the request and the client account specified in the headers. Please make sure there is linking between the MCC authenticated and the customer account requested. 

Thanks and regards,
Xiaoming, Google Ads API Team



 

ref:_00D1U1174p._5001UXVc1Q:ref

SUBINPVASU

unread,
Mar 20, 2020, 7:21:17 PM3/20/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
See, I have the refresh token of that connected account. I need account details using customer service. so I replace my refresh token and generate new client with the latest refresh token and trying to get customer account details. that's when I 'm getting the exception.
--
subinpvasu
9495546474
Reply all
Reply to author
Forward
0 new messages