Hello Sam,
Do you use any of our client libraries? Each of them has an
GetAccountHierarchy example which does exactly what you need.
-Danial, AdWords API Team.
On Friday, December 5, 2014 4:33:26 PM UTC-8, Sam wrote:
>
> Hi all,
>
> Is there a way I can pull a list of Account IDs and Account Names for my
> MCC? I'm a beginner but from what I can see it's possible through
> managed_customer_service, but the output is in a format I'm unsure how to
> progress with (a small section shown below):
>
> (ManagedCustomer){
> name = "xxxxxxxxxxxx"
> customerId = 2340####32
> },
> (ManagedCustomer){
> name = "xxxxxxxxxx"
> customerId = 819####281
> },
> links[] =
> (ManagedCustomerLink){
> managerCustomerId = 837####873
> clientCustomerId = 681####557
> },
>
> How can I deal with this to put the data in an array?
>
> Thanks
>
> Sam
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/0e926c8d-4676-4be4-86c0-48a2570f897b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.