Greetings Forum Faithful!
I'm using raw REST requests to do the request/accept account link handshake.
I am creating the link request through customerClientLinks:mutate as status: PENDING.
That is working fine. When I submit the request, I see a pending request in my manager account in the UI in Google Ads.
The client has OAuthed into our system and I have a valid token with the following scopes based on that OAuth:
In response, I get:
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"authorizationError": "AUTHORIZATION_ERROR"
},
"message": "Authorization of the client failed.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": "0"
}
]
}
},
{
"errorCode": {
"managerLinkError":
"ALREADY_MANAGED_IN_HIERARCHY"
},
"message": "Client is already managed in hierarchy.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": "0"
}
]
}
}
]
}
]
}
}
Which seems to be two errors. I am able to use the same token to query the client's account normally, and the only connection to our manager account is still in PENDING status.
If it's important, they have other manager links to different manager accounts.
Thanks in advance!