After generating oauth client id and password in gcp
I authenticated the google ads and sent a search request, but there was an error as follows.
But strangely, certain mannager accounts do not cause errors, but some mannerger accounts cause errors.
(Both removed and requested hyphens (-)
What's the problem?
The error below is a manger account that removes the hyphen (-) and transfers the error that occurred when the search request was made.
(<_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "{"created":"@1647847100.582000000","description":"Error received from peer ipv4:
216.58.220.138:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"The caller does not have permission","grpc_status":7}"
>, <_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "{"created":"@1647847100.582000000","description":"Error received from peer ipv4:
216.58.220.138:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"The caller does not have permission","grpc_status":7}"
>, errors {
error_code {
authorization_error: 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"
}
request_id: "OZ_-1GsLyYd7LZq3Th63uQ"
, 'OZ_-1GsLyYd7LZq3Th63uQ')