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"
}
]
}
}