Batch Job Completion and Queues

38 views
Skip to first unread message

Danny

unread,
Mar 23, 2017, 3:21:09 AM3/23/17
to AdWords API Forum
Hi

I'm running into issues where sometimes whenever I send a batch job to do a mutate operation (e.g. pause ad), it takes a long time (more than few hours) to keep polling the status for 'DONE' or 'CANCELLED'. But when I check the account, I can see the changes are done generally within minutes.

The issue I'm experiencing is sometimes before I know the first batch job has completed or not (through polling status), I need to send another batch job to perform another mutate operation on the same entity. In this scenario,
  • Would AdWords process multiple batch jobs sequentially only (FIFO) or it's independent?
  • How long do batch jobs generally take to complete (assuming no errors)?
My concern is if AdWords processes the batch jobs independently, I may run into integrity issues. For example,
  1. My system pauses the ad (batch job #1) - pending.
  2. User pauses the ad.
  3. My system enables the ad (batch job #2) - completes.
  4. Ad gets paused (batch job #1 finally completes), but I expected the ad to be enabled (based on last action).
Hope someone can shed some light here. Thanks.

Ivan Bautista

unread,
Mar 23, 2017, 7:06:09 AM3/23/17
to AdWords API Forum
Hi Danny,

Regarding the slow completion time for the batch jobs, could you reply to us privately (using reply privately to author option) with you customer ID and the batch job ID/s in question so we could investigate further?

In the mean time, here are my answers to your questions:
  • Would AdWords process multiple batch jobs sequentially only (FIFO) or it's independent?
As per documentation, submitted jobs run in parallel. You might want to try using temporary IDs so you can execute dependent operations in a single job.
  • How long do batch jobs generally take to complete (assuming no errors)?
A lot of factors can affect the response time of the batch jobs such as network connection and the type of operations you are executing. Rest assured that whether your batch job succeeds or fails, you may refer to the batch job results later on and investigate.

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