Hello,

I keep getting the following error when trying to accept an invitation for 
linking an account to our MCC.  I'm trying to link CustomerMCC to our 
MasterMCC.  I followed the example 
in 
https://developers.google.com/google-ads/api/docs/account-management/linking-manager-accounts

What customerId should be used for Client.config.loginCustomerId?

Below is the request and response

Request
-------

Method Name: 
/google.ads.googleads.v5.services.CustomerManagerLinkService/MutateCustomerManagerLink
Host: https://googleads.googleapis.com
Headers: {
  "x-goog-api-client": "gl-dotnet/4.0.30319 gapic/5.0.0 
gax/3.1.0+acac8dfe75024cb815497966fe13fc6cb1a1b0ed grpc/2.32.0",
  "developer-token": "REDACTED",
  "login-customer-id": "<CustomerMCC>", <--the account that needs to accept 
the invitation
  "x-goog-request-params": "customer_id= <CustomerMCC>  "
}

{ "customerId": " <CustomerMCC>  ", "operations": [ { "update": { 
"resourceName": 
"customers/CustomerMCC/customerManagerLinks/MasterMCC~ManagerLinkId", 
"status": "ACTIVE" }, "updateMask": "resourceName,status" } ] }

Response
--------
Headers: {
  "request-id": "xBf-xfdJbhxrBIyfvf_BAg",
  "date": "Thu, 04 Mar 2021 00:00:45 GMT",
  "alt-svc": "h3-29=\":443\"; ma=2592000,h3-T051=\":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\"",
  "google.ads.googleads.v5.errors.googleadsfailure-bin": 
"Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lk",
  "grpc-status-details-bin": 
"CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGsoCCkN0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnY1LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEoICCv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lk"
}

Fault: {
  "StatusCode": 7,
  "Details": "The caller does not have permission",
  "RequestId": "xBf-xfdJbhxrBIyfvf_BAg",
  "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";
      }
    ]
  }
}

KDJ

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/b2fc2a0d-714b-41e6-80d5-94aefe8acadfn%40googlegroups.com.

Reply via email to