Dear team,

We're testing LinkManagerToClient.php from the PHP client library and  we 
got an error with code "USER_PERMISSION_DENIE".  But we saw invitations  in 
both  manager account and the customer account. 
We want to check why we get this error and who to resolve it.
Here are logs from the  account call


php LinkManagerToClient.php --managerCustomerId=6149357450 
--customerId=4859456003
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): google/ads/googleads/v8/enums/manager_link_status.proto 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/CustomerClientLinkService.php
 
on line 79
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/resources/customer_client_link.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/CustomerClientLinkService.php
 
on line 79
[2021-06-23T17:11:07.109697+08:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.CustomerClientLinkService/MutateCustomerClientLink",
 
CustomerId: 6149357450, RequestId: "atdaqAT7v3ZYCDPkuK9Bww", IsFault: 0, 
FaultMessage: "None"  
An invitation has been extended from the manager customer 6149357450 to the 
client customer 4859456003 with the customer client link resource name 
'customers/6149357450/customerClientLinks/4859456003~218449612'.
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): google/ads/googleads/v8/enums/manager_link_status.proto 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/GoogleAdsService.php
 
on line 10850
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/resources/customer_client_link.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/GoogleAdsService.php
 
on line 10850
[2021-06-23T17:11:07.684250+08:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.GoogleAdsService/Search", CustomerId: 
6149357450, RequestId: "9E4o6pfE8OIP9mx46i2teg", IsFault: 0, FaultMessage: 
"None"  
Retrieved the manager link of the customer client link: its ID is 218449612 
and its resource name is 
'customers/4859456003/customerManagerLinks/6149357450~218449612'.
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): google/ads/googleads/v8/enums/manager_link_status.proto 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Resources/CustomerManagerLink.php
 
on line 49
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/resources/customer_manager_link.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Resources/CustomerManagerLink.php
 
on line 49
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): google/ads/googleads/v8/enums/manager_link_status.proto 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/CustomerManagerLinkService.php
 
on line 87
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/resources/customer_manager_link.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Services/CustomerManagerLinkService.php
 
on line 87
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/enums/policy_topic_entry_type.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/enums/policy_topic_evidence_destination_mismatch_url_type.proto
 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/enums/policy_topic_evidence_destination_not_working_device.proto
 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto
 
in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): google/ads/googleads/v8/common/policy.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
PHP Warning:  proto descriptor was previously loaded (included in multiple 
metadata bundles?): 
google/ads/googleads/v8/errors/feed_item_validation_error.proto in 
/data/google/google-ads-php/metadata/Google/Ads/GoogleAds/V8/Errors/Errors.php 
on line 2937
[2021-06-23T17:11:08.016030+08:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.CustomerManagerLinkService/MutateCustomerManagerLink",
 
CustomerId: 4859456003, RequestId: "177ohveLLHAl0nUAGs7sXw", IsFault: 1, 
FaultMessage: "["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"]"
  
[2021-06-23T17:11:08.016240+08:00] google-ads.NOTICE: Request
-------
Method Name: 
/google.ads.googleads.v8.services.CustomerManagerLinkService/MutateCustomerManagerLink
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.3.23 gapic\/ gax\/1.7.1 grpc\/1.37.0",
    "x-goog-request-params": "customer_id=4859456003",
    "developer-token": "REDACTED",
    "login-customer-id": "4859456003"
}
Request: 
{"customerId":"4859456003","operations":[{"updateMask":"resourceName,status","update":{"resourceName":"customers/4859456003/customerManagerLinks/6149357450~218449612","status":"ACTIVE"}}]}

Response
-------
Headers: {
    "request-id": "177ohveLLHAl0nUAGs7sXw",
    "date": "Wed, 23 Jun 2021 09:11:08 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,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\""
}

Fault
-------
Status code: 7
Details: The caller does not have permission
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":"177ohveLLHAl0nUAGs7sXw"}
  
Request with ID '177ohveLLHAl0nUAGs7sXw' has failed.
Google Ads failure details:
authorization_error: 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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0c0ce59f-ae3b-4525-87b0-e11fe122417fn%40googlegroups.com.

Reply via email to