SystemExit: 2 error

902 views
Skip to first unread message

Dmitry Shvetsov

unread,
Apr 24, 2019, 5:34:47 PM4/24/19
to AdWords API and Google Ads API Forum
Hi!
I'm trying to get keywords usind google ads API (code in the attach) and get respond below. What can be a reason of error and how to fix it?

Respond:
"runfile('C:/Users/rp/Documents/python_scripts/adsAPI/change_action_content/example.py', wdir='C:/Users/rp/Documents/python_scripts/adsAPI/change_action_content')
usage: example.py [-h] -c CUSTOMER_ID [-a AD_GROUP_ID]
example.py: error: the following arguments are required: -c/--customer_id
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

C:\Users\rp\Downloads\WinPython\python-3.6.5.amd64\lib\site-packages\IPython\core\interactiveshell.py:2918: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
  warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)"
example.py

googleadsapi...@google.com

unread,
Apr 24, 2019, 10:22:55 PM4/24/19
to AdWords API and Google Ads API Forum
Hi,

Thank you for reaching out. Upon checking, the error that you are encountering seems to be related more to the client library. You can reach out to the python client library owners through this link in Github as they are better equipped to assist you for this matter.

Regards,
Dave Paurillo
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/735cb0cb-0723-47e4-9dcb-0e1f2c1beed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages