Hello GAAT

This doesn't make a lot of sense to me. 7212153394 is my login-customer-id 
and I've also supplied it as the customerId and STILL "The caller does not 
have permission". 7212153394 is the root of the tree.

Kind regards,
Bruce.

On Thursday, October 24, 2024 at 5:12:37 PM UTC+8 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Note that I have removed your response from the forum as it contains the 
> PII information.
>
> The USER_PERMISSION_DENIED 
> <https://developers.google.com/google-ads/api/reference/rpc/v18/AuthorizationErrorEnum.AuthorizationError#user_permission_denied>
>  error 
> occurs when the authorized customer does not have access to the operating 
> customer. You will need to ensure that the user or email address you used 
> to generate the OAuth2 credentials indeed has access 
> <https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227&rd=1>
>  to 
> the account in your request.
>
> To investigate further, kindly provide us with the below details: 
>    
>    - Execute List Accessible Customers 
>    
> <https://developers.google.com/google-ads/api/samples/list-accessible-customers>
>  and 
>    send the complete API logs. You may also check this API documentation 
>    
> <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts>
>  for 
>    more information. 
>    - The email address used for generating the OAuth credentials i.e, 
>    refresh token. 
>
> Since you are using the .Net client library, if you haven't enabled the 
> logging yet, I would request you to enable it by referring to this guide on 
> .Net 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> .
>
> You can send the details via *Reply privately** to the author option*, or 
> *direct 
> **private* *reply* to this email.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vGg9b:ref" (ADR-00272786)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/7da68932-c93b-4966-90ae-f9dc0c9dea92n%40googlegroups.com.
GoogleAds.DetailedRequestLogs Information: 1 : [2024-10-25 07:17:19Z] - 
---------------BEGIN API CALL---------------

Request
-------

Method Name: 
/google.ads.googleads.v18.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics
Host: 
Headers: {
  "x-goog-api-client": "gl-dotnet/4.0.30319 gapic/21.1.0 gax/4.8.0 grpc/2.60.0 
gccl/4.0.2 pb/3.25.0",
  "developer-token": "REDACTED",
  "login-customer-id": "7212153394",
  "x-goog-request-params": "customer_id=7212153394"
}

{ "customerId": "7212153394", "keywords": [ "skid steer loaders" ], 
"historicalMetricsOptions": { "includeAverageCpc": true }, "language": 
"English", "geoTargetConstants": [ "20035" ], "keywordPlanNetwork": 
"GOOGLE_SEARCH" }

Response
--------
Headers: {
  "request-id": "-N_uCnYKCNTuLvg0v1wVyA",
  "date": "Fri, 25 Oct 2024 07:17:19 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "google.ads.googleads.v18.errors.googleadsfailure-bin": 
"Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lkEhYtTl91Q25ZS0NOVHVMdmcwdjF3VnlB",
  "grpc-status-details-bin": 
"CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGuMCCkR0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxOC5lcnJvcnMuR29vZ2xlQWRzRmFpbHVyZRKaAgr/AQoCSAIS+AFVc2VyIGRvZXNuJ3QgaGF2ZSBwZXJtaXNzaW9uIHRvIGFjY2VzcyBjdXN0b21lci4gTm90ZTogSWYgeW91J3JlIGFjY2Vzc2luZyBhIGNsaWVudCBjdXN0b21lciwgdGhlIG1hbmFnZXIncyBjdXN0b21lciBpZCBtdXN0IGJlIHNldCBpbiB0aGUgJ2xvZ2luLWN1c3RvbWVyLWlkJyBoZWFkZXIuIFNlZSBodHRwczovL2RldmVsb3BlcnMuZ29vZ2xlLmNvbS9nb29nbGUtYWRzL2FwaS9kb2NzL2NvbmNlcHRzL2NhbGwtc3RydWN0dXJlI2NpZBIWLU5fdUNuWUtDTlR1THZnMHYxd1Z5QQ=="
}

Fault: {
  "StatusCode": 7,
  "Details": "The caller does not have permission",
  "RequestId": "-N_uCnYKCNTuLvg0v1wVyA",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "authorizationError": "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";
      }
    ],
    "requestId": "-N_uCnYKCNTuLvg0v1wVyA"
  }
}
----------------END API CALL----------------

GoogleAds.DetailedRequestLogs Information: 1 : [2024-10-25 07:20:08Z] - 
---------------BEGIN API CALL---------------

Request
-------

Method Name: 
/google.ads.googleads.v18.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics
Host: 
Headers: {
  "x-goog-api-client": "gl-dotnet/4.0.30319 gapic/21.1.0 gax/4.8.0 grpc/2.60.0 
gccl/4.0.2 pb/3.25.0",
  "developer-token": "REDACTED",
  "login-customer-id": "7212153394",
  "x-goog-request-params": "customer_id=7212153394"
}

{ "customerId": "7212153394", "keywords": [ "skid steer loaders" ], 
"historicalMetricsOptions": { "includeAverageCpc": true }, "language": 
"English", "geoTargetConstants": [ "20035" ], "keywordPlanNetwork": 
"GOOGLE_SEARCH" }

Response
--------
Headers: {
  "request-id": "ju2-yo8ACtQLUuLKvaKeFQ",
  "date": "Fri, 25 Oct 2024 07:20:08 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "google.ads.googleads.v18.errors.googleadsfailure-bin": 
"Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lkEhZqdTIteW84QUN0UUxVdUxLdmFLZUZR",
  "grpc-status-details-bin": 
"CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGuMCCkR0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxOC5lcnJvcnMuR29vZ2xlQWRzRmFpbHVyZRKaAgr/AQoCSAIS+AFVc2VyIGRvZXNuJ3QgaGF2ZSBwZXJtaXNzaW9uIHRvIGFjY2VzcyBjdXN0b21lci4gTm90ZTogSWYgeW91J3JlIGFjY2Vzc2luZyBhIGNsaWVudCBjdXN0b21lciwgdGhlIG1hbmFnZXIncyBjdXN0b21lciBpZCBtdXN0IGJlIHNldCBpbiB0aGUgJ2xvZ2luLWN1c3RvbWVyLWlkJyBoZWFkZXIuIFNlZSBodHRwczovL2RldmVsb3BlcnMuZ29vZ2xlLmNvbS9nb29nbGUtYWRzL2FwaS9kb2NzL2NvbmNlcHRzL2NhbGwtc3RydWN0dXJlI2NpZBIWanUyLXlvOEFDdFFMVXVMS3ZhS2VGUQ=="
}

Fault: {
  "StatusCode": 7,
  "Details": "The caller does not have permission",
  "RequestId": "ju2-yo8ACtQLUuLKvaKeFQ",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "authorizationError": "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";
      }
    ],
    "requestId": "ju2-yo8ACtQLUuLKvaKeFQ"
  }
}
----------------END API CALL----------------

Reply via email to