error - Mutatejobservice

21 views
Skip to first unread message

srke...@hotels.com

unread,
Sep 18, 2015, 10:46:34 AM9/18/15
to AdWords API Forum
Hi,

I am getting the following error for the mutatejobservice. I am using the python API.

Server raised fault: '[BulkMutateJobError.CAN_RETURN_RESULT_FOR_ONLY_ONE_JOB @ selector.jobIds]'

My selector contains a list of jobs. 

selector = {
            'xsi_type': 'BulkMutateJobSelector',
            'jobIds': job_ids
             }
result_response = mutate_job_service.getResult(selector)

Below is my selector.

print(selector)


{'jobIds': [-8620061152442875448, 7049546730600769722, 4673550474990727926, 1403356473547140064, -1984783493825385012], 'xsi_type': 'BulkMutateJobSelector'}


How do i return the result for all the jobs in the selector? Also can you give me a code snippet to get the errors in the result as a list?

Thanks,
Sri





Umesh Dengale

unread,
Sep 18, 2015, 4:56:18 PM9/18/15
to AdWords API Forum
Hi Sri,

You are getting the CAN_RETURN_RESULT_FOR_ONLY_ONE_JOB error because you are passing more than one job id. For the MutateJobService.getResult() operation, it is recommended to submit only one job id at a time. Please check out our AddKeywordsInBulk example code from Java client library.

Thanks,
Umesh, AdWords API Team.
 

srke...@hotels.com

unread,
Sep 24, 2015, 11:15:34 AM9/24/15
to AdWords API Forum
Thanks Umesh. I created a a job for every 1000 keywords i want to update and got the result for each job instead of creating a job for each keyword.

Umesh Dengale

unread,
Sep 24, 2015, 12:16:42 PM9/24/15
to AdWords API Forum
Hi Sri,

I am glad that you are able to update the keywords in bulk. Let us know if you need help with any other issues.
Reply all
Reply to author
Forward
0 new messages