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