Google Ads API PERMISSION_DENIED

892 views
Skip to first unread message

Evaldas Gudavicius

unread,
Jun 21, 2021, 5:51:23 AM6/21/21
to AdWords API and Google Ads API Forum
Hello,

Any idea what can be wrong?

I have all the credentials.

Developer token with standard access.

Refresh token works great - because the same way I''m using in Adwords API and it works great.

What else I could check?

Thanks!


Code.png
Error.png

Google Ads API Forum Advisor

unread,
Jun 22, 2021, 2:23:21 PM6/22/21
to in...@ppcdatafeed.com, adwor...@googlegroups.com

Hi Evaldas,

Thank you for reaching out. The PERMISSION_DENIED error usually occurs when there is no link between the manager account authenticated in the request and the client account specified in the headers. As you are using the Google Ads API you need to include the login-customer-id in the header as mentioned in this blog post. Please make sure you use the correct login-customer-id that you used to generate the OAuth2 credentials. If the issue persists, please regenerate the OAuth2 credentials using the email with Admin or Standard access to the MCC account by following the instructions in this guide.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IxJjJ:ref

Evaldas Gudavicius

unread,
Jun 28, 2021, 10:36:11 AM6/28/21
to AdWords API and Google Ads API Forum
You were right, thank you.

I had to set Login customer ID.
Reply all
Reply to author
Forward
0 new messages