There is an issue or I did something not right. private static function 
acceptInvitation (
https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php)
 
doesn't work for me and throwing the following error:


An invitation has been extended from the manager customer 3191377543 to the 
client customer 1096465570 with the customer client link resource name 
'customers/3191377543/customerClientLinks/1096465570~165200823'. Retrieved 
the manager link of the customer client link: its ID is 165200823 and its 
resource name is 
'customers/1096465570/customerManagerLinks/3191377543~165200823'. 
ApiException was thrown with message '{ "message": "The caller does not 
have permission", "code": 7, "status": "PERMISSION_DENIED", "details": [ { 
"@type": 0, "data": 
"type.googleapis.com\/google.ads.googleads.v2.errors.GoogleAdsFailure" }, { 
"@type": 0, "data": [ { "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#login-customer-id"
 
} ] } ] }'.


Function `createInvitation` and `getManagerLinkResourceName` works well but 
`acceptInvitation` throws error above.

How I can fix it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/8cff53b9-b0fe-42b2-939a-0d05f7aa7604%40googlegroups.com.

Reply via email to