Hi,

A minimum job size was introduced in v201003:

  "Since v201003, a job may have no fewer than 100 mutate operations
in total."
  
http://code.google.com/apis/adwords/v2009/docs/reference/BulkMutateJobService.BulkMutateJob.html

The BulkMutateJobService is most useful when performing a large number
of operations, and smaller batches of operations can be processed
quickly using the synchronous services.

  http://adwordsapi.blogspot.com/2010/03/discover-v2009-do-more-with-mutate.html

Best,
- Eric Koleda, AdWords API Team

On Jun 9, 6:16 am, "adwo...@baobaz" <[email protected]> wrote:
> Hi,
> I'm trying to perform bulk mutate job operations (with the .NET API
> v201003). I've read the examples.
> Since I have only one text ad, but many keywords, I just want to add
> the keywords in the bulk way. The text ads are added in the classical
> way. So I have only one request part.
>
> In my stream, I have from 10 to 50 AdGroupCriterionOperation
> operations.
>
> When I call the mutate method, I catch a TOO_FEW_OPERATIONS_IN_JOB.
>
> Here's my code :
>
> // Create a job.
>
> // a. Create a bulk job object.
> BulkMutateJob bulkJob = null;
> bulkJob = new BulkMutateJob();
> long bulkJobId = 0;
>
> bulkJob.numRequestParts = 1;
> bulkJob.numRequestPartsSpecified = true;
>
> // b. Create a part of the job.
> BulkMutateRequest bulkRequest1 = new BulkMutateRequest();
> bulkRequest1.partIndex = 0;
> bulkRequest1.partIndexSpecified = true;
> bulkRequest1.operationStreams = new OperationStream[]
> { keywordOpStream };
> bulkJob.request = bulkRequest1;
>
> // c. Create job operation.
> JobOperation jobOperation1 = new JobOperation();
> jobOperation1.operatorSpecified = true;
> joboperatio...@operator = Operator.ADD;
> jobOperation1.operand = bulkJob;
>
> // d. Call mutate().
> bulkJob = _bmjService.mutate(jobOperation1);
> bulkJobId = bulkJob.id;
>
> Thank you

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to