Thursday, 25 February 2016

Re: Batch Job Service v201601. How long should a script wait before giving up?

Hello Foluso,

Glad to hear that.
Feel free to tell us if you encounter any problems.

Cheers,
Thanet, AdWords API Team

On Thursday, February 25, 2016 at 8:17:36 PM UTC+9, foluso@brainlabsdigital.com wrote:
Hi Thanet, 

Thanks for your prompt response! 

I have been using the BatchJobService all week and haven't re-encountered the same problems. 

But I am keeping all the logs, so I will respond if it occurs again. 

Thanks!

Foluso

On Thursday, February 25, 2016 at 5:54:42 AM UTC, Thanet Knack Praneenararat (AdWords API Team) wrote:
Hello foluso,

1 - Is it possible for the job to take a very long time occaisionally? And rarely fail for reasons unknown, and maybe not change the status after failing or completing?
We have been aware of this issue and just improved the overall performance and reliability recently.
Could you please have a try again and let us know if you're still faced with this issue?
If you happen to be faced with this issue, please send your SOAP logs to us by Reply privately to author.

2 - Is there a maximum waiting time (maybe it's in the docs and I missed it) at which I should stop polling the status and assume the job has failed, or double check with the account on the Adwords website.
There is no maximum waiting time suggested currently. 
But if you try as done in our code example, but still don't get the job in a DONE or CANCELLED state, please inform us as there may be something wrong occurred.

Cheers,
Thanet, AdWords API Team

On Wednesday, February 24, 2016 at 10:30:06 PM UTC+9, fol...@brainlabsdigital.com wrote:

This is a question about the new BatchJobService, replacement to MutateJobService.

I am using the v201601 Python library which is very well explained and documented. 

Short question:

- Is it possible for the BatchJobService to be "DONE", or "CANCELLED". Without a corresponding change in the batch job object which was selected by Id. 

Long explanation:

I used the BatchJobService to update the status 2701 campaigns all at once.
I was able to poll the status using the selector and predicates EQUALS <batch_job_id> with an exponential drop off as recommended in the example
This worked reliably most of the time, and completed in 30 - 40s on average.
Occasionally, the exact same request would complete in 3 minutes with a status of "AWAITING _FILE" or "ACTIVE"
I believe the operations usually completed eventually, but once in a while they did not. 

This problem is difficult to replicate as the service usually works perfectly, but I will try to log all the interations in the future so I can provide more details. 


Long Question:

Assuming:

- I have polled the correct batch job Id
- I have indeed uploaded operations to the batch job
- I polled the batch job status exactly as recommended in the documentation

1 - Is it possible for the job to take a very long time occaisionally? And rarely fail for reasons unknown, and maybe not change the status after failing or completing?

2 - Is there a maximum waiting time (maybe it's in the docs and I missed it) at which I should stop polling the status and assume the job has failed, or double check with the account on the Adwords website.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/90b44e18-04a7-4814-a618-dcf653976d30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment