Hi there,
It used to work, but lately we are getting the error USER_PERMISSION_DENIED
User doesn't have permission to access customer.

This is the API call Request/Response (I hope you can help us):

GoogleAds.DetailedRequestLogs Information: 1 : [2023-03-23 00:12:15Z] - 
---------------BEGIN API CALL---------------

Request
-------

Method Name: 
/google.ads.googleads.v13.services.AdGroupCriterionService/MutateAdGroupCriteria
Host: 
Headers: {
  "x-goog-api-client": "gl-dotnet/4.7.2 gapic/15.0.0 
gax/4.0.0+7489c236e0a5801d0f6e89bf1c23433f48521956 grpc/2.46.3 gccl/2.1.0 
pb/3.21.5+638779f353731a0a04496bde20d14164684c3d93",
  "developer-token": "REDACTED",
  "login-customer-id": "4822940284",
  "x-goog-request-params": "customer_id=2684650069"
}

{ "customerId": "2684650069", "operations": [ { "create": { "status": 
"ENABLED", "keyword": { "matchType": "EXACT", "text": "Flurbiprofen 0.03 
Ophthalmic Drops, 2.5 ml" }, "adGroup": 
"customers/2684650069/adGroups/109104318229", "finalUrls": [ 
"https://www.allivet.com/product/flurbiprofen-0-03-drops-2-5-ml/28902.html"; 
] } } ] }

Response
--------
Headers: {
  "request-id": "MwVbV0n5yRLhmeg9qvoaOA",
  "date": "Thu, 23 Mar 2023 00:12:13 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "google.ads.googleads.v13.errors.googleadsfailure-bin": 
"Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lkEhZNd1ZiVjBuNXlSTGhtZWc5cXZvYU9B",
  "grpc-status-details-bin": 
"CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGuMCCkR0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMy5lcnJvcnMuR29vZ2xlQWRzRmFpbHVyZRKaAgr/AQoCSAIS+AFVc2VyIGRvZXNuJ3QgaGF2ZSBwZXJtaXNzaW9uIHRvIGFjY2VzcyBjdXN0b21lci4gTm90ZTogSWYgeW91J3JlIGFjY2Vzc2luZyBhIGNsaWVudCBjdXN0b21lciwgdGhlIG1hbmFnZXIncyBjdXN0b21lciBpZCBtdXN0IGJlIHNldCBpbiB0aGUgJ2xvZ2luLWN1c3RvbWVyLWlkJyBoZWFkZXIuIFNlZSBodHRwczovL2RldmVsb3BlcnMuZ29vZ2xlLmNvbS9nb29nbGUtYWRzL2FwaS9kb2NzL2NvbmNlcHRzL2NhbGwtc3RydWN0dXJlI2NpZBIWTXdWYlYwbjV5UkxobWVnOXF2b2FPQQ=="
}

Fault: {
  "StatusCode": 7,
  "Details": "The caller does not have permission",
  "RequestId": "MwVbV0n5yRLhmeg9qvoaOA",
  "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": "MwVbV0n5yRLhmeg9qvoaOA"
  }
}
----------------END API CALL----------------

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/223b6bae-ca49-44e2-b47e-eb5649349940n%40googlegroups.com.
  • US... API2Go
    • ... API2Go
      • ... API2Go
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to