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": "[email protected]",
  "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"
      }
    ]
  }
}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f118f099-ab38-43ef-8c63-4c849bdccee9n%40googlegroups.com.
  • Un... Elumalai Eswar Prasad
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to