Hello, Thanks, Jakeia for the reply. I still have some confusion here regarding the API. Maybe I am not explaining my issue properly.
[image: ads2.png] Looking at the above image, I am able to get the Ads Customer IDs (e.g. 123-456-789) by using the ListAccessibleCustomers. It is behaving exactly the way you explained above. And that is the behavior that I require. The only problem is that with the ID, I am unable to get the account names (e.g. Google Ads Account or Ads Manager Account 2, etc.). Which API endpoint or query will help me get the list of all these accessible customers along with both 1. their customer ID and 2. their account name I definitely think there should be some endpoint that I can use to get a list of all the accounts along with their details and not just ID. Can you point out which one is it? As Carmela described in an earlier response, we can use customer_client <https://developers.google.com/google-ads/api/fields/v10/customer_client> report to get the detail of an individual account. But I think it will be very inefficient if we were to first fetch the list of IDs and then iterate over these IDs and use the API call to get the name of each resource separately. It will be wasting a lot of API quota. Is there any other way that can make it possible? Thank you for helping Regards, Adil On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote: > Hello Muhammad, > > Thanks for reaching out to the Google Ads API Forum. Unfortunately there > is no way to add multiple MCC account Id to fetch the list of accessible > accounts. Feel free to use our sample code list-accessible-customers > <https://developers.google.com/google-ads/api/docs/samples/list-accessible-customers?hl=en> > > to retrieve the customer IDs accessible by the user. > > List Accessible Accounts > <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> > > provides the list of accounts you are a direct user on. To illustrate this, > if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads > accounts you will get 5 accounts returned. To get the similar list of > accounts in the UI you would click on the top right representation of your > Google Account and the same list should be there for you to pick from. > > And by using Get Account Hierarchy > <https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy> > > it will get the account hierarchy > <https://support.google.com/google-ads/answer/7519925> of your manager > account. You aren't necessarily a user in all accounts that are in the > hierarchy, only because you are a user in an MCC that has access can you > see those accounts. Feel free to get back to us if you have any questions. > > Best Regards, > [image: Google Logo] > Jakeia Sabrina > Google Ads API Team > > ref:_00D1U1174p._5004Q2ZM01g: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 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/4fbe051e-5c90-435b-8d96-4ee4a31d69c3n%40googlegroups.com.