BatchJone: UploadOperations Timeout

32 views
Skip to first unread message

Nellle Rickchards

unread,
Sep 14, 2018, 12:22:07 PM9/14/18
to AdWords API and Google Ads API Forum
My batchjob upload is not dependable. The batch_job_helper.UploadOperations takes too long. This is cause an error as None object is being passed to batch_job_helper.  

This is happening about 75% of the time I run the script. Any fix to this?

Nellle Rickchards

unread,
Sep 14, 2018, 12:26:18 PM9/14/18
to AdWords API and Google Ads API Forum
Error:

Traceback (most recent call last):
  File "src/update-keywords.py", line 49, in <module>
    main(client, update_keywords)
  File "src/update-keywords.py", line 35, in main
    download_url = campaign_batch_upload.GetBatchJobDownloadUrlWhenReady(client, batch_job_id)
  File "/src/campaign_batch_upload.py", line 333, in GetBatchJobDownloadUrlWhenReady
    url = batch_job['downloadUrl']['url']
TypeError: 'NoneType' object is not subscriptable

Nellle Rickchards

unread,
Sep 14, 2018, 6:43:15 PM9/14/18
to AdWords API and Google Ads API Forum
Found the problem... I had an indented if statement which was causing the "max_poles" look to only run once.

Teja Makani

unread,
Sep 17, 2018, 12:24:31 PM9/17/18
to AdWords API and Google Ads API Forum
Hello Nellle,

Glad you are able to solve the issue. Thanks for sharing the root cause here. Let me know if you have any other questions.

Regards,
Sai Teja, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages