Canceled BatchJobs

48 views
Skip to first unread message

Christian

unread,
Mar 11, 2016, 4:41:29 AM3/11/16
to AdWords API Forum
Hello,

we are using BatchJobService v201601 via Java to mutate larger amounts of entities (e.g. creating new TextAds).

Unfortunately often those Jobs fail.

They have status = CANCELED and one BatchProcessingError of UNKNOWN.

The downloaded result (if available) doesn't contain any errors.

To give you a few examples:
AccountId:  7285610379
cancelled BatchJob-IDs:
3411130
3407826
3407301
3400379
3410479

Our questions:
Why does this happen? 
How can we avoid it?
What is best-practice reaction to this?

Thank you for your help!

Best,
Christian

Michael Cloonan (AdWords API Team)

unread,
Mar 11, 2016, 2:11:53 PM3/11/16
to AdWords API Forum
Hello,

In general, the best practice here is to retry. However, since it looks like you've done that 4 times already, I'm going to reach out to engineering to see if there's more insight we can provide about how to avoid it or whether it's actually an issue on our side.

Thank you so much for providing the BatchJobIds off the bat!

Regards,
Mike, AdWords API Team

Michael Cloonan (AdWords API Team)

unread,
Mar 11, 2016, 3:44:24 PM3/11/16
to AdWords API Forum
Hello,

I've heard back from engineering. They are aware of issues with handling uploads as large as the ones you're attempting. They are actively working on improving reliability, because cases like this should be fully supported.

The best practice here for now is to reduce the size of each batch job. However, this should be a temporary measure as we're working to improve our infrastructure.

Regards,
Mike, AdWords API Team

Christian

unread,
Mar 11, 2016, 3:53:12 PM3/11/16
to AdWords API Forum
Hi Mike,

thank you a lot for your response.

We are going to implement a retry pattern and split our BatchJob to smaller ones.

Which size of BatchJob can be handled well at the moment?

Best,
Christian

Michael Cloonan (AdWords API Team)

unread,
Mar 14, 2016, 10:18:26 AM3/14/16
to AdWords API Forum
Hello,

Unfortunately, there is no exact size that we can give you. Just know that the possibility that it fails in this way is directly proportional to the number of operations; the fewer operations you have, the more likely it will be successful.

I apologize about the lack of specifics, but we are working hard to improve this reliability.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages