(java client v9.0.0) Batch Job, random "task was cancelled" on OperationFutureImpl.get()

114 views
Skip to first unread message

Kostas Kougios

unread,
Sep 30, 2020, 8:55:16 AM9/30/20
to AdWords API and Google Ads API Forum
Hi,

While creating batcj jobs, I am randomly getting the following exception. 2 out of 3 times it works ok but the other 1 time the exception occurs with no info on what caused it. The data I send are always the same, so it can't be data related.

Exception in thread "main" java.util.concurrent.CancellationException: Task was cancelled.
    at com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1377)
    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:551)
    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:514)
    at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:86)
    at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:62)
    at com.google.api.gax.longrunning.OperationFutureImpl.get(OperationFutureImpl.java:127)

My code is quite standard, create a batch job, addAllMutateOperations and addBatchJobOperations, and so on, as per https://developers.google.com/google-ads/api/docs/batch-processing/best-practices

Any ideas?

Thanks

Google Ads API Forum Advisor Prod

unread,
Sep 30, 2020, 1:46:36 PM9/30/20
to adwor...@googlegroups.com
Hi,

Thank you for reaching out to us. Could you provide us with the full request and response log for where the error occurs so that I may further investigate this issue?

Thank you,

Google Logo
Bryan Li
Google Ads API Team
 


ref:_00D1U1174p._5004Q25Y2NK:ref

Google Ads API Forum Advisor Prod

unread,
Sep 30, 2020, 1:55:45 PM9/30/20
to adwor...@googlegroups.com
Hi,

For privacy, you can respond with "reply privately to the author".

Skander Mansouri

unread,
May 5, 2022, 6:16:02 AM5/5/22
to Google Ads API and AdWords API Forum
I have a similar issue, do you know what was the reason? and how did you solve it?

Google Ads API Forum Advisor

unread,
May 6, 2022, 4:36:38 AM5/6/22
to ska...@armis.tech, adwor...@googlegroups.com
Hi All,

Thank you for the replies.

For us to further investigate the error you are encountering, could you please provide to our team privately the complete request and response logs with request ID generated on your end, which is also asked by my colleague Bryan, so we can check it further?

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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