AuthorizationError.USER_PERMISSION_DENIED

20 views
Skip to first unread message

SUBIN P VASU

unread,
May 23, 2017, 3:03:22 AM5/23/17
to AdWords API Forum
Hi,

I was downloading the reports and account data till yesterday. But today I got this error. why this happens. Please help me.

Google\AdsApi\AdWords\v201609\cm\ApiException Object ( [errors:protected] => Array ( [0] => Google\AdsApi\AdWords\Reporting\v201609\ReportDownloadError Object ( [fieldPath:protected] => [trigger:protected] => [errorString:protected] => AuthorizationError.USER_PERMISSION_DENIED [ApiErrorType:protected] => ) ) [message1:protected] => [ApplicationExceptionType:protected] => [message:protected] => Details: [fieldPath: ; trigger: ; errorString: AuthorizationError.USER_PERMISSION_DENIED] [string:Exception:private] => [code:protected] => 0 [file:protected] => /home/hybroid17/public_html/google_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201609/ReportDownloader.php [line:protected] => 146 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/hybroid17/public_html/google_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201609/ReportDownloader.php [line] => 98 [function] => makeReportRequest [class] => Google\AdsApi\AdWords\Reporting\v201609\ReportDownloader

Peter Oliquino

unread,
May 23, 2017, 4:02:23 AM5/23/17
to AdWords API Forum
Hi Subin,

The USER_PERMISSION_DENIED error indicates that there is no link between the manager account authenticated and the client account specified in your request headers or that the OAuth2 credentials you are using does not match the client account or any of its manager accounts.

What I would recommend is that you verify if the client account is linked to the manager account by using the ManagedCustomerService.get() and see if the client account ID is returned in the results. You may refer here for an example. Additionally, please make sure the the OAuth2 credentials you are using were created using the email address associated to your MCC in which the client account is linked. I hope this has been helpful and please feel free to write back if the issue persists.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages