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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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 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
"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 "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/1a0mqhg0000000000tljnu000di40sx74mjccpo6ko30c1g68r32dpp%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Regardi... Dorian Kind
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to