/// <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() { GetPremiumRatesForRateCard codeExample = new GetPremiumRatesForRateCard(); Console.WriteLine(codeExample.Description); long rateCardId = long.Parse(_T("INSERT_RATE_CARD_ID_HERE")); codeExample.Run(new DfpUser(), rateCardId); }
/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { GetPremiumRatesForRateCard codeExample = new GetPremiumRatesForRateCard(); long rateCardId = long.Parse("INSERT_RATE_CARD_ID_HERE"); Console.WriteLine(codeExample.Description); try { codeExample.Run(new DfpUser(), rateCardId); } catch (Exception e) { Console.WriteLine("Failed to get premium rates. Exception says \"{0}\"", e.Message); } }