Hey,
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.
Error -
Request
-------
MethodName: google.ads.googleads.v9.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {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}.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0b6b0f55-bae1-4393-b5cb-dfe78d318902n%40googlegroups.com.