AdWords test batch API takes too long

32 views
Skip to first unread message

Lukas Lukac

unread,
Mar 15, 2018, 9:43:42 AM3/15/18
to AdWords API Forum
I am running some performance tests for the new architecture I developed at trivago for publishing AdWords Objects through the BatchJob API but the polling of the BatchJobStatus takes ages.

I have 4 workers uploading each 8k operations and in each worker I am getting the whole morning:

Sleeping for 320 seconds before the next BatchJob result poll attempt.
Batch job 688192240 is currently in ACTIVE status. 
Sleeping for 640 seconds before the next BatchJob result poll attempt.
Batch job 688192240 is currently in ACTIVE status.
Sleeping for 1280 seconds before the next BatchJob result poll attempt.

(the batch job ofc changes per each worker). 

Why it's so slow? Is there any way I can monitor the AdWords test API servers or something? Is it slow only because I am pushing to a Test Account?

Thx

Milind Sankeshware (AdWords API Team)

unread,
Mar 15, 2018, 4:03:16 PM3/15/18
to AdWords API Forum
Hi Lukas,

Please find my response below:
  1.  If you are using our code samples, the batch job's wait time may be increasing in each poll attempt. That is because the code samples are coded to poll using an exponential back off. You could change this logic in code as per your need.
  2.  Based on various factors like size of the batch job, the time of day when the job is being executed, the type of operations in the batch job etc., the time to complete a batch job might vary. Please refer to the best practices to ensure that you avoid any other issue when uploading your batch jobs. We don't have any AdWords test API server where you could monitor the performance. 
Let me know if you have further questions.

Thanks,
Milind, AdWords API Team.

Lukas Lukac

unread,
Mar 15, 2018, 4:27:28 PM3/15/18
to AdWords API Forum
Hi @Millind,

1) the exponential back off is on purpose, that's fine
2) at the end of the day I think I found the issue. I was uploading almost 30k active Campaigns and later on I found out there is a limit of 10k campaigns per account right? So maybe that particular error scenario was very slow. Tomorrow I will try to upload only 10k campaigns, each with 50 targeting and hopefully the BatchJobs will be processed quickly. I will get back to you with the result.

Thx

Milind Sankeshware (AdWords API Team)

unread,
Mar 16, 2018, 1:53:34 PM3/16/18
to AdWords API Forum
Hi Lukas,

Yes, 10k campaigns per account (includes active and paused) is the limit. Pleas check this guide for more information. Let me know if you are facing any issue in the latest run of the batch job. 
Reply all
Reply to author
Forward
0 new messages