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.
The same refresh token, oauth client id, oauth client password
If the manager account changes, an error occurs
It's a manager account under the same google account.
Both removed the hyphen (-) and asked for it
Some mannager accounts normally provide search values
Some mannager accounts cause errors.
I wrote the request id value that caused the error as an error below
Do I have to tell you the mannager account that caused the error and the
mannager account that did not cause the error?
(<_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')
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9e139413-03fc-4b9a-879b-d305cd71e549n%40googlegroups.com.