Google Ads API : RESULTS_NOT_READY

72 views
Skip to first unread message

Arvind

unread,
May 15, 2022, 9:33:35 PM5/15/22
to Google Ads API and AdWords API Forum
Hello Team,
I am using a batch job to remove AdGroups and I am seeing the below error.

After I submit the batch job, I am getting OperationFuture object and checking whether the batch job is completed or not using isDone() method.
Once isDone() method returns true, I am using listBatchJobResults of BatchJobServiceClient to fetch the results and getting the below error.

Can you please help me in handling this scenario and which method to use to check if batch job is completed or not?

errors {
  error_code {
    batch_job_error: RESULTS_NOT_READY
  }
  message: "Results cannot be retrieved until batch job is finished."
}

Google Ads API Forum Advisor

unread,
May 15, 2022, 11:26:01 PM5/15/22
to buj...@gmail.com, adwor...@googlegroups.com

Hi Arvind,


Thanks for reaching out to the Google Ads API Support team.
 

With regard to your concern, so our team can better check this concern, could you provide the complete Ads API logs (request and response with request-id) to further investigation on this?
 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2at6B7:ref

Arvind

unread,
May 16, 2022, 2:09:52 PM5/16/22
to Google Ads API and AdWords API Forum
I replied privately to the author with the request and response details.
Please let me know on the update.

Google Ads API Forum Advisor

unread,
May 17, 2022, 4:51:20 AM5/17/22
to buj...@gmail.com, adwor...@googlegroups.com
Hi Arvind,

Thank you for providing the requested information. I work with Darwin and allow me to assist you here.

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.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2at6B7:ref

Arvind Rocky

unread,
May 17, 2022, 7:45:14 AM5/17/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hello Team,
We have already followed the guide that you provided.
I have more than 3,000 operations and i am splitting that into multiple batches and for each batch, I am creating a new batch job.
I am checking if the batch job is complete or not using LRO’s done method. Until the done method returns true, sleep method is used in an exponential manner. 
List job results method is called only when the done method returns true. 
This is repeated for the other batch jobs as well.
Should I wait until all the 3 or more batch jobs complete or can I fetch the results as and when one of them complete.




On May 17, 2022, at 04:51, Google Ads API Forum Advisor <ads...@forumsupport.google> wrote:

 Hi Arvind,

Google Ads API Forum Advisor

unread,
May 19, 2022, 4:11:50 PM5/19/22
to buj...@gmail.com, adwor...@googlegroups.com
Hi Arvind,

You can make a ListBatchJobResultsRequest for a batch job as soon as it finishes. You do not have to wait for other independently running batch jobs to finish in order to list results for a finished job.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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