Replacing GetBatchJob to upgrade from v9

22 views
Skip to first unread message

julian selser

unread,
Jun 21, 2022, 8:24:19 PM6/21/22
to Google Ads API and AdWords API Forum
Hey,

We are migrating from v9 to v11 and noticed all GET requests being deprecated and there seems to be no GAQL way to obtain batch jobs.

We need the Status of the BatchJob to monitor weather its done or not but no other service seems to provide this anymore. While our client library (java) lets you use a future to poll, it's not suitable for our use case.

Our theory is that we can use BatchJobService.ListBatchJobResults to do the same by handling the RESULTS_NOT_READY error and assuming the job is done when getting a successful response. Can you confirm this approach is valid?

Thanks!




Google Ads API Forum Advisor

unread,
Jun 21, 2022, 9:20:57 PM6/21/22
to julian.s...@gmail.com, adwor...@googlegroups.com
Hi Julian,

Thank you for raising this concern to the Google Ads API team.

Moving forward to your concern, it seems that this is about retrieving batch job data. As per this release note, kindly note that the GET method and any services that exclusively had a get method have been removed. That said, since you want to retrieve batch job status, you can use the batch_job report to retrieve this data.

Also, with regard to this "Our theory is that we can use BatchJobService.ListBatchJobResults to do the same by handling the RESULTS_NOT_READY error and assuming the job is done when getting a successful response. Can you confirm this approach is valid?", I can confirm that your understanding here is correct.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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