googleads / googleads/googleads-python-lib

Syntax Error with run_saved_query.py

Open
#295 4 comments 0 reactions 1 assignee View on GitHub

@msaniscalchi is already working on this.

Since Aug 22, 2018.

bug P2
Dominant language
Python
Stars
749
Forks
967
PR merge metrics
No merged PRs in 30d

Description

I get the following syntax error on line 39 of run_saved_query.py:

except errors.DfpReportError, e:
                            ^
SyntaxError: invalid syntax

Here's the snipet from code (starting on line 36) that I can't figure out how to format:

try:
  # Run the report and wait for it to finish.
  report_job_id = report_downloader.WaitForReport(report_job)
except errors.DfpReportError, e:
  print 'Failed to generate report. Error was: %s' % e
# Change to your preferred export format.
export_format = 'CSV_DUMP'

Is this a python version issue?

Thanks for the help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.