googleads / googleads/googleads-python-lib

Syntax Error with run_saved_query.py

オープン
#295 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

@msaniscalchi がすでに取り組んでいます。

2018年8月22日 から。

bug P2
主要言語
Python
スター
749
フォーク
967
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。