Unable to connect customer account with Manager account

119 views
Skip to first unread message

Elumalai Eswar Prasad

unread,
Jan 8, 2024, 11:49:19 PM1/8/24
to Google Ads API and AdWords API Forum
I am building a ad-agency website where users can register and give consent to my website for adwords scope so that the users can post the ads directly to their google ads account which are created in my website. 

I am having a manager account and I am using REST API's to connect by using https://developers.google.com/google-ads/api/rest/reference/rest/v15/customers/createCustomerClient. I tried with test manager account but i am unable to connect. I don't know why. Can you help me in this regard.

below is my request body

{
  "accessRole": "STANDARD",
  "customerClient": {
    "timeZone": "Asia/Calcutta",
    "resourceName": "customers/-----------",
    "currencyCode": "INR"
  },
  "emailAddress": "--------@gmail.com",
  "validateOnly": false
}

and this the response i am getting

{
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure",
        "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"
          }
        ],
        "requestId": "w2kRktNmaK7AMja4S98dSw"
      }
    ]
  }
}


Google Ads API Forum Advisor

unread,
Jan 9, 2024, 2:51:18 AM1/9/24
to eswar....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are encountering the "USER_PERMISSION_DENIED" error while using the Google Ads API.
 
The "USER_PERMISSION_DENIED" error usually indicates that the authorized customer does not have access to the operating customer. That being said, you will need to ensure that the user/email address you used to generate the OAuth2 credentials indeed has access to the account in your request. If the user/email address has access or is associated with the MCC/manager account, you will need to specify the MCC/manager account's ID without hyphens (-) as the value of the login-customer-id field.

If the issue still persists even after following the above steps, in order to assist you further, kindly provide us with the "complete API logs" (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rVTYL:ref"

Thanks,
 
Google Logo Google Ads API Team


Jzeff Somera

unread,
Jan 9, 2024, 6:07:40 AM1/9/24
to adwor...@googlegroups.com
This is the error I got, I am in my test manager account and  I  am planning to create a test account but I encounter this error

image.png

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/_rc8c000000000000000000000000000000000000000000000S6ZHSU00tjplAsnVS-e3oZaKsb2uGg%40sfdc.net.

Google Ads API Forum Advisor

unread,
Jan 9, 2024, 8:48:07 AM1/9/24
to jzeff...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

I understand that you are facing issues while creating a test client account. I have raised this issue with the rest of our team and one of my teammates will get back to you once we have an update. 

Google Ads API Forum Advisor

unread,
Jan 31, 2024, 3:23:30 AM1/31/24
to jzeff...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for your patience.

We have an update. The issue has been fixed and resolved. I would suggest you to check it from your end once. If you have any queries related to the Google Ads API, please feel free to get back to us. Hope this helps.
Reply all
Reply to author
Forward
0 new messages