Manager Request Lacks Authorization in Rest Api

44 views
Skip to first unread message

Sakirul Alam Sifat

unread,
Mar 20, 2022, 3:09:10 PM3/20/22
to Google Ads API and AdWords API Forum
Hello, I am using a manager account which was created by google after applying for remarketing permission. But the After calling the apis it shows the below message. 

"details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "authorizationError": "USER_PERMISSION_DENIED"
                        },
                        "message": "User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"
                    }
                ]
But I have full access and I am an admin. Still it shows this.

Google Ads API Forum Advisor

unread,
Mar 20, 2022, 11:12:20 PM3/20/22
to sifat....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

Since you have encountered the AuthorizationError.USER_PERMISSION_DENIED error, The authorized customer does not have access to the operating customer, please ensure that you are specifying login-customer-id in the request while authenticating as a user with access to a manager account. To prevent this, make sure to specify the login-customer-id as the manager's account ID without hyphens (-). Client libraries have built in support for this, or see our guide .

For this error, you can check this documentation for more details.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Yphtq:ref

Sakirul Alam Sifat

unread,
Mar 21, 2022, 2:32:51 AM3/21/22
to Google Ads API and AdWords API Forum
I can not even make a client by hitting the  createCustomerClient api. This does not require a operating customer. I have added the login-customer-id correctly in the header correctly.

Google Ads API Forum Advisor

unread,
Mar 21, 2022, 9:44:12 AM3/21/22
to sifat....@gmail.com, adwor...@googlegroups.com
Hello,

Can you please verify that the user email used to create your OAuth credentials in your GCP project is also a listed user in the manager account that specified as the login customer ID?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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