This code example illustrates how to create a text ad with ad parameters. To add an ad group, run AddAdGroup.cs. To add a keyword, run run AddKeyword.cs. Tags: AdGroupAdService.mutate, AdParamService.mutate
Inheritance: ExampleBase
 /// <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(string[] args)
 {
     SetAdParameters codeExample = new SetAdParameters();
       Console.WriteLine(codeExample.Description);
       try {
     long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE");
     long criterionId = long.Parse("INSERT_CRITERION_ID_HERE");
     codeExample.Run(new AdWordsUser(), adGroupId, criterionId);
       } catch (Exception ex) {
     Console.WriteLine("An exception occurred while running this code example. {0}",
     ExampleUtilities.FormatException(ex));
       }
 }