Concern - With migration to new Google Ads API from AdWords, we started facing below given error for few of our clients which earlier used to be working fine. Please help me with this.
Request
-------
MethodName: google.ads.googleads.v9.services.GoogleAdsService/Search
Endpoint:
googleads.googleapis.com:443Headers: {developer-token=REDACTED, linked-customer-id=<Ad-account-id-of-our-client>, x-goog-api-client=gl-java/1.8.0_301 gccl/16.0.3 gapic/16.0.3 gax/2.6.1 grpc/1.27.2}
Body: customer_id: "<Ad-account-id-of-our-client>"
query: "SELECT
campaign.id FROM campaign LIMIT 1"
page_size: 1
Response
--------
Headers: Metadata(content-type=application/grpc,request-id=ZA8-dTOO1e9PTiLOMCXaWA,date=Mon, 29 Aug 2022 06:16:36 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: 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: "ZA8-dTOO1e9PTiLOMCXaWA"
Status: Status{code=PERMISSION_DENIED, description=The caller does not have permission, cause=null}.