Getting user_permission denied on add campaign

43 views
Skip to first unread message

Prateek Srivastava

unread,
Oct 27, 2021, 9:49:28 AM10/27/21
to AdWords API and Google Ads API Forum
Hello,

Getting USER_PERMISSION_DENIED issue upon adding campaign. I am using the subaccount ID of adwords manager account. I tried creating with adwords UI , it's successfully created but through the API it shows USER_PERMISSION_DENIED.

Thanks

Google Ads API Forum Advisor

unread,
Oct 27, 2021, 2:39:52 PM10/27/21
to psrivas...@gmail.com, adwor...@googlegroups.com

Hello,  

 

Thanks for reaching out to the Google Ads API support team. As you’ve mentioned that you’ve encountered the error ‘USER_PERMISSION_DENIED’, it usually has the following root causes:

  • The link between the manager and client account was removed.

  • Your OAuth credentials are for a user who does not have access to the client customer ID specified or any of its manager accounts.

You may double check if your credentials are correct for the said user. With that, I would recommend that you regenerate the refreshToken and the OAuth2 credential using an email address which currently has access to your Google Ads account.

 

If the issue persists, could you please provide us with the complete logs (request and response with request-id) via the Reply privately to the author option. 

 

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2QFec8:ref

Prateek Srivastava

unread,
Oct 29, 2021, 10:20:45 AM10/29/21
to AdWords API and Google Ads API Forum
I got resolve my issue by inviting the customer id (sub-accounts) with the admin access and updating them. But now, my concern is that do i need to provide every sub-account the admin access and invite them every time before creating campaign.

Thanks

Google Ads API Forum Advisor

unread,
Nov 1, 2021, 11:09:09 AM11/1/21
to psrivas...@gmail.com, adwor...@googlegroups.com
Hi Prateek,

If you are attempting to access sub-accounts as a manager, you can specify the login-customer-ID header to do so. Otherwise, direct access to those sub-accounts will be required. 

The user email used to create OAuth credentials must have direct or indirect access to the child customers.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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