Exemple #1
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        public static void Main()
        {
            GetBaseRatesForRateCard codeExample = new GetBaseRatesForRateCard();

            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()
        {
            GetBaseRatesForRateCard codeExample = new GetBaseRatesForRateCard();
            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 base rates. Exception says \"{0}\"",
                                  e.Message);
            }
        }