Hello,

To get the account hierarchy via Google Ads API beta, you could use the
customer_client
<https://developers.google.com/google-ads/api/docs/fields/customer_client> resource.
Through which you can get only the resource name, level, Boolean value of
hidden status and Client_customer details of the accounts under your
manager account. To get these details the OAuth credentials used to make
the API call should be of manager account and the CleintCustomerId passing
in the header should be of manager account. Below is the sample query for
your reference.

Query in DotNet format below:
Query = @"SELECT
              customer_client.resource_name,
              customer_client.client_customer,
              customer_client.level, customer_client.hidden,
              customer_client.level
              FROM customer_client",
              CustomerId = customerId.ToString()

Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
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/00d12gjui000000080btok0005aqm2x6smjie9l64o30c1g68qj4cpj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • custome... Anand Sumo
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Anand Sumo
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... heath
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to