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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to