Hi team,
I'm trying to run a get_account_hierarchy.py script from 
https://github.com/googleads/google-ads-python/blob/73e61d50150385042957e908a5a1a6632afedcc1/examples/account_management/get_account_hierarchy.py
 
with --manager_customer_id=6561797468 (that's the id of Google Ads Manager 
account), but I'm having this error:

Request made: ClientCustomerId: 6561797468, Host: googleads.googleapis.com, 
Method: /google.ads.googleads.v10.services.GoogleAdsService/Search, 
RequestId: 4FT0Tv5bArT_oJmk7aWYJw, IsFault: True, 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
Request with ID "4FT0Tv5bArT_oJmk7aWYJw" failed with status 
"PERMISSION_DENIED" and includes the following errors:
        Error with 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";

Could you please help me and explain what this means and how to deal with 
it:
"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"?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bf8fbbf9-2b99-4356-892c-7dc438e45dbbn%40googlegroups.com.

Reply via email to