This code example shows how to handle RateExceededError in your application. To trigger the rate exceeded error, this code example runs 100 threads in parallel, each thread attempting to validate 100 keywords in a single request. Note that spawning 100 parallel threads is for illustrative purposes only, you shouldn't do this in your application. Tags: AdGroupAdService.mutate
Inheritance: ExampleBase
コード例 #1
0
 /// <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)
 {
     HandleRateExceededError codeExample = new HandleRateExceededError();
       Console.WriteLine(codeExample.Description);
       try {
     long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE");
     codeExample.Run(new AdWordsUser(), adGroupId);
       } catch (Exception ex) {
     Console.WriteLine("An exception occurred while running this code example. {0}",
     ExampleUtilities.FormatException(ex));
       }
 }