This code example migrates legacy sitelinks to upgraded sitelinks for a given list of campaigns. The campaigns must be upgraded to enhanced campaigns before you can run this example. To upgrade a campaign to enhanced, run CampaignManagement/SetCampaignEnhanced.cs. To get all campaigns, run BasicOperations/GetCampaigns.cs. Tags: CampaignAdExtensionService.get, CampaignAdExtensionService.mutate Tags: FeedService.mutate, FeedItemService.mutate Tags: FeedMappingService.mutate, CampaignFeedService.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)
 {
     UpgradeLegacySitelinks codeExample = new UpgradeLegacySitelinks();
       Console.WriteLine(codeExample.Description);
       try {
     long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE");
     codeExample.Run(new AdWordsUser(), new long[] {campaignId});
       } catch (Exception ex) {
     Console.WriteLine("An exception occurred while running this code example. {0}",
     ExampleUtilities.FormatException(ex));
       }
 }