/// <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); }
/// <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); } }