Batch Job marked Done without processing all operations

80 views
Skip to first unread message

Gaurav Singh

unread,
Apr 20, 2022, 11:31:54 AM4/20/22
to Google Ads API and AdWords API Forum
Hi,

We created a batch job for updating ads.

Total operation count was 1430, but only 500 got processed when we checked the response from search stream

Customer ID: 6387337317
Login Customer ID: 8935765693

Search Stream Query:
SELECT batch_job.id, batch_job.long_running_operation, batch_job.metadata.completion_date_time, batch_job.metadata.creation_date_time, batch_job.metadata.estimated_completion_ratio, batch_job.metadata.executed_operation_count, batch_job.metadata.operation_count, batch_job.metadata.start_date_time, batch_job.next_add_sequence_token, batch_job.resource_name, batch_job.status FROM batch_job WHERE batch_job.id =8857903111

Response of above batch job
{
    "metadata": {
        "startDateTime": "+54270-12-17 11:16:31",
        "creationDateTime": "2022-04-20 18:17:51",
        "completionDateTime": "2022-04-20 18:29:21",
        "estimatedCompletionRatio": 1,
        "operationCount": "1430",
        "executedOperationCount": "500"
    },
    "longRunningOperation": "customers/6387337317/operations/CiljdXN0b21lcnMvNjM4NzMzNzMxNy9iYXRjaEpvYnMvODg1NzkwMzExMRAK",
    "resourceName": "customers/6387337317/batchJobs/8857903111",
    "id": "8857903111",
    "status": "DONE"
}

When checking operations status beyond index 499 we are getting the below result:
Mutate job #512 has a status 'The MutateJob was aborted. There are no further results to return.' and response of type 'N/A'. 

Why are operations not getting processed after 500 and the job status is getting updated DONE?

Google Ads API Forum Advisor

unread,
Apr 21, 2022, 10:23:33 AM4/21/22
to gaurav...@onlinesales.ai, adwor...@googlegroups.com

Hello Gaurav,

Thanks for reaching out to the Google Ads API support.
For us to investigate, we will need full logs within the format of request and response logs with request ID and request header generated on your end of API communications of the report pull, so our team can better check the root cause of the error.

Please send the requested details via the Reply privately to the author option. If this option is not available, you may send the details directly to our googleadsapi-support@google.com alias by referring to this thread.

The request and response appears similar to the JSON Mappings in our REST documentation. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging". Setting the logger to 'DEBUG' will get the desired log.

Best Regards,

Google Logo
Jakeia
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2a58KU:ref
Reply all
Reply to author
Forward
0 new messages