Hi Sai Teja,

it's been three years without an update. I still believe there's worth in 
having a more efficient way of downloading the whole account hierarchy 
without having to send (number of accessible manager accounts) +1 requests. 
Are you planning on adding some features towards that end?

Best,
Dorian

On Thursday, 2 May 2019 at 20:59:05 UTC+2 googleadsapi...@google.com wrote:

> Hello Dorian,
>
> In Google Ads API we don't have a way to get the account hierarchy with 
> the account details and link details in a single call. You have to follow 
> the process you mentioned to build that hierarchy. Adding to the 
> customer_client_link, when you use this resource you would be getting all 
> the links of the manager account (even of the canceled account's). Even 
> with the customer_client resource you will get canceled accounts and it is 
> not possible to filter them out. Out team is aware of the hierarchy(time 
> consuming, more requests) and the account status issues and will update you 
> once I have more information.
>
> Regards,
> Sai Teja, Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     https://ads-developers.googleblog.com/search/label/google_ads_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=9-6385000026179&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 05/02/19 04:59:32 dor...@webrepublic.ch wrote:
>
> Hi,
>
> a common use case we have is to create an tree-like hierarchy of all Ads 
> accounts that are accessible from a given Ads OAuth2 credential. In the 
> Adwords API, it took a single call to the ManagedCustomerService to 
> receive all the information required to build such a data structure.
>
> As far as I can tell so far, in the Ads API the number of calls to build 
> an equivalent hierarchy grows linearly with the number of accounts that are 
> accessible. It seems that we'll have to
>
> 1) Use the customer_client resource to list all reachable accounts
> 2) For each gathered account, set the account's ID as login-customer-id 
> and use the customer resource to obtain account name and type 
> (sub-manager or actual account)
> 3) For each manager account identified in 2), set the account's ID as 
> login-customer-id and use the customer_client_link resource to gather 
> that manager's sub-accounts
>
> I hope I'm misunderstanding something because it looks like the process 
> above could take a while for large accounts structures (we sometimes 
> encounter MCCs with over 1'000 sub-managers and accounts).
>
> Is there a quicker way to get a list of all accessible accounts, including 
> the links between managers and accounts?
>
> Thanks for any feedback and best regards,
> Dorian
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 adwor...@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.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/adwords-api/64bca39f-bc86-4e89-a4bb-9a0b4168e3ff%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/adwords-api/64bca39f-bc86-4e89-a4bb-9a0b4168e3ff%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fc621ca9-8ce8-43c4-a1d8-95a10b74c443n%40googlegroups.com.
  • Re... Dorian Kind
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Dorian Kind
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Dorian Kind
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Dorian Kind
                • ... Dorian Kind
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to