Hi Xiaoming, I'm having the same issue as Austin. Your response doesn't explain why the error would occur.
The code pulls account IDs that the user has access to e.g. client.service.customer.list_accessible_customers().resource_names It then trys to pull information about each account to build the hierarchy. Why would it say "grpc_message":"The caller does not have permission","grpc_status":7" if it's only accessing information about an account the API has said you have access to? Regards, Lewis On Thursday, 11 February 2021 at 17:09:27 UTC adsapiforumadvisor wrote: > Hi Austin, > > Thank you for reaching out. This code example would go through the account > hierarchy and print them out. If you don’t specify the managerId, then the > direct accounts under the authenticated manager would be fetched first to > build the hierarchy. Otherwise, if you specify the managerId to query on > then you have to specify the loginCustomerId as well. You could read > through the comments > <https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy> > > in the code to better understand how the code works. > > Thanks and regards, > Xiaoming, Google Ads API Team > > [image: Google Logo] > Xiaoming > Google Ads API Team > > > ref:_00D1U1174p._5004Q2CPk7n:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/88243ad4-6073-4756-95c0-1cc5b83f4708n%40googlegroups.com.
