Hello!
I run example python script (https://github.com/googleads/google-ads-python/blob/master/examples/reporting/get_keyword_stats.py).
I have all the necessary set up done for google ads api
my yaml file looks like below
developer_token: jvX-------A
client_id: 274---------com
client_secret: heU-------Imr9
refresh_token: 1//0g-uNgZ-----yrHH6QElune1j6l0Tc
login_customer_id: (My google ads manager id, I tried both with and without putting this value)
I tried running the file in "jupyter notebook" as well as in "terminal". At both places, the file is not executing. Please find the errors below
Jupyter Notebook:usage: ipykernel_launcher.py [-h] -c CUSTOMER_ID
ipykernel_launcher.py: error: the following arguments are required: -c/--customer_id
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/IPython/core/interactiveshell.py:3339: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
MacBook-Air-57:yaml_with_account_id_cmd harshadkhanapure$ python get_keyword.py -c 9574386950
File "get_keyword.py", line 54
print(f'Keyword text "{criterion.keyword.text.value}" with '
^
SyntaxError: invalid syntax
MacBook-Air-57:yaml_with_account_id_cmd harshadkhanapure$ python get_keyword.py -c/-- 9574386950
File "get_keyword.py", line 54
print(f'Keyword text "{criterion.keyword.text.value}" with '
^
MacBook-Air-57:yaml_with_account_id_cmd harshadkhanapure$ python get_keyword.py -c/-- 3969569860
File "get_keyword.py", line 54
print(f'Keyword text "{criterion.keyword.text.value}" with '
^
MacBook-Air-57:yaml_with_account_id_cmd harshadkhanapure$ python get_keyword.py -c 3969569860
File "get_keyword.py", line 54
print(f'Keyword text "{criterion.keyword.text.value}" with '
I tried using both Manager Account ID and Child Account but code did not work for both. Kindly let me know how can we resolve this issue.
|
||||||