/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { GetUserTeamAssociationsForUser codeExample = new GetUserTeamAssociationsForUser(); Console.WriteLine(codeExample.Description); long userId = long.Parse(_T("INSERT_USER_ID_HERE")); codeExample.Run(new DfpUser(), userId); }
/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { GetUserTeamAssociationsForUser codeExample = new GetUserTeamAssociationsForUser(); long userId = long.Parse("INSERT_USER_ID_HERE"); Console.WriteLine(codeExample.Description); try { codeExample.Run(new DfpUser(), userId); } catch (Exception e) { Console.WriteLine("Failed to get user team associations. Exception says \"{0}\"", e.Message); } }