Hello. Thanks for the response Jakeia. I still have some confusion regarding the API. I think I did not make myself very clear in the above questions.
[image: ads2.png] Looking at the above image, I am able to get the account IDs (e.g. 123-456-789, etc.) using the List Accessible Accounts <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> call. The behavior is exactly as you mentioned in your reply and that is the behavior that I require. The only thing that is missing is that I also *require the Account Names *(e.g. Google Ads account, Ads Manager Account 2, etc.) along with the IDs to show these names to the user so they have some ease in choosing the account. So, what I require is the functionality that the List Accessible Accounts <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts> provide but instead of only providing the IDs of the accounts, I also get the names of the accounts. I am sure there should be some method to achieve this, can you point out which one? Also, in the earlier response, as Carmela pointed out that to fetch the details of the individual account, we will need to use the customer_client <https://developers.google.com/google-ads/api/fields/v10/customer_client> report. But I think it will be an inefficient use of the resources if we were to get the list of IDs and then iterate over the list and make API calls to get the name of each Ads account. Also, it will quickly kill the API usage quota. So, can you point out if any efficient solution exists to solve this issue? Really grateful for the awesome support 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/d4850037-ef24-4f8d-805c-8398ce5c3d82n%40googlegroups.com.