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

            Console.WriteLine(codeExample.Description);

            long productTemplateId = long.Parse(_T("INSERT_PRODUCT_TEMPLATE_ID_HERE"));

            codeExample.Run(new DfpUser(), productTemplateId);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        public static void Main()
        {
            GetProductsForProductTemplate codeExample = new GetProductsForProductTemplate();
            long productTemplateId = long.Parse("INSERT_PRODUCT_TEMPLATE_ID_HERE");

            Console.WriteLine(codeExample.Description);
            try {
                codeExample.Run(new DfpUser(), productTemplateId);
            } catch (Exception e) {
                Console.WriteLine("Failed to get products. Exception says \"{0}\"",
                                  e.Message);
            }
        }