This code example illustrates how to retrieve the account hierarchy under an account. This code example won't work with Test Accounts. See https://developers.google.com/adwords/api/docs/test-accounts Tags: ManagedCustomerService.get
Inheritance: ExampleBase
 /// <summary>
 /// Main method, to run this code example as a standalone application.
 /// </summary>
 /// <param name="args">The command line arguments.</param>
 public static void Main(string[] args)
 {
     GetAccountHierarchy codeExample = new GetAccountHierarchy();
       Console.WriteLine(codeExample.Description);
       try {
     codeExample.Run(new AdWordsUser());
       } catch (Exception ex) {
     Console.WriteLine("An exception occurred while running this code example. {0}",
     ExampleUtilities.FormatException(ex));
       }
 }