Sample returning AuthorizationError.USER_PERMISSION_DENIED error

34 views
Skip to first unread message

Josh Ratliff

unread,
Mar 27, 2020, 6:20:15 PM3/27/20
to AdWords API and Google Ads API Forum

I'm working through the sample listed here:


Let's get a few initial things out of the way. The dev token has been approved for production use. All of the APIs (as far as I'm aware) are enabled.

I think the problem is I work for an agency that manages ads for our clients, so the walk through is slightly wrong for what I need it to do. I'm trying to pull data from one of our clients, and I'm hitting the AuthorizationError.USER_PERMISSION_DENIED error. I'm not sure if I need to use a different oauth account, if the client needs to do something, or something else. Here's a copy of my .yaml file


Can someone help me understand what needs to happen so I can become unblocked? Thanks.

Josh

Google Ads API Forum Advisor Prod

unread,
Mar 30, 2020, 3:16:09 PM3/30/20
to ratliff...@gmail.com, adwor...@googlegroups.com

Hi Josh,

Thank you for reaching out to us. I see that you're encountering a User_Permission_Denied error. This means that there's either no link between the manager account and customer account that you're querying or that your OAuth client credentials haven't been given access to the manager account.

If the issue is the former, you can either use ManagedCustomerService via the API or use the UI to create a link between your manager account and customer account. If the issue is the latter, you can check your client credentials access by logging into your manager account in the UI, then go into "Tools and Settings" > "Setup" > "Account Access". Under the "Users" tab, the email associated with your client credentials should be listed. If it is neither of these issues, could you please provide me with your SOAP request and response logs where this issue occurs so that I may further troubleshoot this issue?

Thank you,
Bryan, Google Ads API Team



ref:_00D1U1174p._5001UXX7bf:ref
Reply all
Reply to author
Forward
0 new messages