Skip to content

batch_job['DownloadUrl'] sometimes is null #305

@sliu-walmart

Description

@sliu-walmart

We’ve been using the same pattern of accessing AdWords batch service as this example. However, since about 10 days ago after we upgraded our python googleads library to 12.2.0 from 9.0.0, we started to receive intermittent issues with these two lines.

The error message quoted below seems to indicate the batch_job[‘downloadUrl’] object is null even if the “downloadUrl” key is present in the batch_job object.

url = batch_job['downloadUrl']['url']
TypeError: 'NoneType' object has no attribute '__getitem__'

Retry the script usually eventually fixes this issue, but every day we got some jobs failing too many times even after retrying and people getting the alert messages have to manually retry the jobs. We looked up the releasing notes from version 10.0.0 but couldn’t find anything related.

Can you check what is causing this issue and what should be the best practice for us moving forward?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions