RESULTS_NOT_READY in BatchJob

28 views
Skip to first unread message

julian selser

unread,
Jun 28, 2022, 12:40:25 PM6/28/22
to Google Ads API and AdWords API Forum
Hi!

We are using the ListBatchJobService and would like to clarify if when obtaining a result from the API:

1. The entire batch job has been processed
2. Only the results in the requested page had been processsed and asking for another page would return RESULTS_NOT_READY

To take the 2nd possibility further, lets assume I set the page size to be 1 in a job with 1000 operations, can I assume the entire job is done if I get a page of a single operation? 

Thanks!
Julian

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 3:42:53 PM6/28/22
to julian.s...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

According to this document, the ListBatchJobResults are used to print their status, when all your batch jobs are finished. With this, you'll need to wait until the batch job is finished before you can use ListBatchJobResults. While waiting for the batch job to complete, you can poll the status of the batch job until it's done by following this guide

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cE7kB:ref

julian selser

unread,
Jun 28, 2022, 4:20:25 PM6/28/22
to Google Ads API and AdWords API Forum
Hi! Thanks for the prompt answer!

Unfortunately we cant poll as shown in the guide since we need to check the job at a different OS process, our intention is indeed getting the status of a batch job but it seems the only option is ListBatchJobResults. In your response:
  • According to this document, the ListBatchJobResults are used to print their status
I'm afraid this doesnt definetively answer my question, Ill rephrase in hopes of better communicating my concern. Say we have 1000 operations in a single batch, if I set the page size to 1, can I be certain the entire batch is done when I get a result? (havent got RESULTS_NOT_READY and got one page with one operation)

If we can set page size to 1 google would send less data and we would get a response faster.

We just need a way to know if the entire batch is done but Get requests have been deprecated and polling is not an option.

Thanks!

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 11:27:37 PM6/28/22
to julian.s...@gmail.com, adwor...@googlegroups.com
Hi Julian,

Thank you for the clarification. I am also a member of the Google Ads API team and let me provide support to your concern.

So that I can further check or possibly raise it to the team, would you be able to provide details here and what exact output you are pertaining to this question "can I be certain the entire batch is done when I get a result?"?

In addition to the ListBatchJobResults, if the corresponding operation was successful, the response of the mutate_operation_response contains the result with its resource_name.

If the corresponding operation produced errors and could not be completed, the mutate_operation_response field is null.

The status field of BatchJobResult contains error details for each failed operation

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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