ah, looks 
like 
https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy
 
shows to do it by recursion one layer at a time. That should work for me. 
Sorry for not finding this before posting.

On Tuesday, 3 January 2023 at 15:11:35 UTC-5 dhmitc...@gmail.com wrote:

> We have a nested MCC structure w hundreds of "customers" (aka accounts). 
> I'd like to get the mcc id for each customer. I don't want the "logged in" 
> customer id but instead the direct owning mcc id for each so I can ensure 
> the remote structure complies with our business structure. (Our mcc ids, of 
> course, repr different business segments.)
>
> Currently the query looks like:
>
> SELECT customer_client.id, customer_client.resource_name, 
> customer_client.test_account,
>       customer_client.descriptive_name, customer_client.currency_code, 
>       customer_client.time_zone, customer_client.status
> FROM customer_client
> WHERE customer_client.hidden = false and customer_client.manager = false
>      and customer_client.test_account = false and customer_client.status = 
> 'ENABLED'"
>
> I was hoping customer_client.resource_name would be 
> customers/{mcc}/customerClients/{customer_id} but it just duplicates the 
> customer_id into both fields.
>
> Don Mitchell
> Sr. Princ. SW Arch
> CarGurus
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fa8cb381-4939-499d-88a2-96cc3af483f2n%40googlegroups.com.
  • Ge... dhmitc...@gmail.com
    • ... dhmitc...@gmail.com
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to