Hi Brandon, https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201302/accountmanagement/GetAccountHierarchy.java is a code example that shows how to use this service. Instead of childrenId, there are linkIds that show the relationship between any two accounts. See https://developers.google.com/adwords/api/docs/reference/v201302/ManagedCustomerService.ManagedCustomerPage?hl=en for more details.
Cheers, Anash P. Oommen, AdWords API Advisor. On Thursday, May 9, 2013 1:45:26 PM UTC+5:30, Brandon wrote: > > Hi, > > I am a newbie to use AdWords API and still in practicing with some simple > methods. > > Recently I was trying to do something just like the Client Reporting does > in the MCC account. > > It can set report type, name, format and has a list box which can select > clients with clearly account hierarchy. > > And the problem is that I can't get the account hierarchy through the > ManagedCustomerService<https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService> > . > > It only returns > "canManageClients<https://developers.google.com/adwords/api/docs/reference/v201302/ManagedCustomerService.ManagedCustomer#canManageClients> > " field and makes no help. > > Did I use the wrong service? But I can't find any other service which has > a field named like "parentId" or "childrenId" which can indicate the > relationship with others. > > Or it just can't be done by the API? > > Any hint will be grateful. > > P.S. I'm not a native English speaker. I'm sorry that if there's any > weird usage of grammars or something from above which will confuses your > reading. > > Brandon > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/groups/opt_out.
