diff --git a/examples/async.py b/examples/async.py index 203e7129..db129de2 100644 --- a/examples/async.py +++ b/examples/async.py @@ -50,7 +50,7 @@ job = i_async_job.api_get() print("Percent done: " + str(job[AdReportRun.Field.async_percent_completion])) time.sleep(1) - if job: + if str(job[AdReportRun.Field.async_status]) == 'Job Completed'): print("Done!") break