Download Account Names and IDs

20 views
Skip to first unread message

Sam

unread,
Dec 5, 2014, 7:33:26 PM12/5/14
to adwor...@googlegroups.com
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

Danial Klimkin

unread,
Dec 5, 2014, 7:46:07 PM12/5/14
to adwor...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages