Adwords Batch Jobs CANCELED or INTERNAL_ERROR

47 views
Skip to first unread message

Richard Scorer

unread,
Jun 20, 2019, 7:02:23 AM6/20/19
to AdWords API and Google Ads API Forum
Yesterday we pushed a number of batch jobs, 10% of which failed for no provided reason. Could someone please take a look and hopefully explain what happened to our batch jobs so we can perhaps prevent these issues in the future?

They are across a number of different accounts. We had 91 batch jobs CANCELED with no error - examples are 

Account: 1095363880, Batch: 1555479026
Account: 3732192484, Batch: 1555405878
Account: 6011282466, Batch: 1555832781

These accounts all seemed to be processing, and suddenly were CANCELED. Definitely not by us. 

Then we had 117 batch jobs failed due to "INTERNAL_ERROR".

Examples:
Account: 1289959727, Batch: 1555616228 - 77% complete, 32325 operations executed, 32325 succeeded, 32325 written.
Account: 1167746827, Batch: 1555537352 - 16% complete, 56691 operations executed, 549 succeeded, 56691 written.
Account: 4724505641, Batch: 1555633246 - 71% complete, 47421 operations executed, 47421 succeeded, 47426 written. <-- this one wrote more than operations provided.
Account: 5936322484, Batch: 1556502467 - 0% complete, 20 operations executed, 20 succeeded, 20 written.
Account: 8635488849, Batch: 1556365425 - 99% complete, 99075 operations executed, 94935 succeeded, 99075 written.


Thanks,
Richard

Google Ads API Forum Advisor Prod

unread,
Jun 20, 2019, 5:36:48 PM6/20/19
to richard...@redbrain.com, adwor...@googlegroups.com
Hi Richard,

Thanks for the question. I'm looking into this for you and will get back to you with more information as soon as I can.

Thanks,
Ben Karl, Google Ads API Team

ref:_00D1U1174p._5001UCYZ9v:ref

Richard Scorer

unread,
Jul 2, 2019, 6:24:06 AM7/2/19
to AdWords API and Google Ads API Forum
Hi Ben,

Thanks for your response, is there any update? 

Thanks!

Google Ads API Forum Advisor Prod

unread,
Jul 3, 2019, 11:28:08 AM7/3/19
to richard...@redbrain.com, adwor...@googlegroups.com
Hi Richard,

I looked into our logs and spoke with the batch jobs team, and the jobs in question timed out because they were taking too long to complete. We took a look at your operations and noticed that you have many instances of the following pattern of operations:
  1. Create ad group 1
  2. Create an ad in ad group 1
  3. Create ad group criteria in ad group 1
  4. Create ad group 2
  5. Create an ad in ad group 2
  6. Create ad group criteria in ad group 2
  7. and so on...
Instead of this approach, please group your operations according to operation type as recommended in the best practices section of our guide . For example, the following would be a much more efficient approach for the sequence above:
  1. Create ad group 1
  2. Create ad group 2
  3. ...
  4. Create ad in ad group 1
  5. Create ad in ad group 2
  6. ...
  7. Create ad group criteria in ad group 1
  8. Create ad group criteria in ad group 2
  9. ...
Thanks,
Josh, Google Ads API Team

ref:_00D1U1174p._5001UCYZ9v:ref

Richard Scorer

unread,
Jul 4, 2019, 5:32:15 AM7/4/19
to adsapifor...@gmail.com, adwor...@googlegroups.com
Hi Josh,

Thanks for getting back to us, we will modify our batch writer so that it collates the batch operations by type.

Cheers,
Richard

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/YOxlzgyd1E4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/K0HJ1000000000000000000000000000000000000000000000PU2OAH007HnIfA-8TcKuUiDopGzU-A%40sfdc.net.
Reply all
Reply to author
Forward
0 new messages