On Nov 22, 8:20 am, Danial Klimkin <danial.klimkin+fo...@google.com>
wrote:
> Hello Ian,
>
> This error usually means you are sending your requests too fast rather than
> the number of of operations is too high. Please see the following post for
> more details:
>
> http://adwordsapi.blogspot.com/2010/06/better-know-error-rateexceeded...
I guess I am confused. If I send one request with 2000 operations
regardless of the time period between requests, I get the above
RateExceededError EVERY TIME. If I send 8 request with 500 ops each
simultaneously from different threads for same account, I get no
errors. So empirically, I don't get how this is an ops/s issue instead
of just a to many ops issue.
also on a side note, having different limits in the sandbox vs.
production severely hampers any optimization attempts since doing
performance testing against production is prohibitively expensive, and
the different limits renders any results invalid.
On Nov 24, 7:09 am, Danial Klimkin <danial.klimkin+fo...@google.com>
wrote:
internal IEnumerable<AdGroupCriterion> AddKeyWords(IEnumerable<AdGroupCriterion> adGroupCritKeywords) { List<AdGroupCriterionOperation> operations = new List<AdGroupCriterionOperation>(); AdGroupCriterionOperation oneOperation = null; foreach(AdGroupCriterion adGroupCritKeyword in adGroupCritKeywords) { oneOperation = new AdGroupCriterionOperation(); oneOperation.@operator = Operator.ADD; oneOperation.operand = adGroupCritKeyword; operations.Add(oneOperation); } AdGroupCriterionReturnValue retVal = null; try { AdGroupCriterionService adGroupCriterionService = (AdGroupCriterionService)(this.AdWordsUser.GetService(AdWordsService.v201109.AdGroupCriterionService)); retVal = adGroupCriterionService.mutate(operations.ToArray()); } catch (System.Exception ex) { throw new System.Exception("Failed to add Keywords", ex); } return retVal.value; }