Google api error occur

216 views
Skip to first unread message

Ritik Soni

unread,
Jan 29, 2022, 12:52:32 AM1/29/22
to Google Ads API and AdWords API Forum
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\googleads\common.py", line 243, in LoadFromStorage
    with open(path, 'rb') as handle:
FileNotFoundError: [Errno 2] No such file or directory: '.../googleads.yaml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\PycharmProjects\googleExample\Google ads.py", line 16, in <module>
    adwords_client = adwords.AdWordsClient.LoadFromStorage('.../googleads.yaml')
  File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\googleads\adwords.py", line 175, in LoadFromStorage
    return cls(**googleads.common.LoadFromStorage(
  File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\googleads\common.py", line 246, in LoadFromStorage
    raise googleads.errors.GoogleAdsValueError(
googleads.errors.GoogleAdsValueError: Given yaml file, .../googleads.yaml, could not be opened.

Google Ads API Forum Advisor

unread,
Jan 31, 2022, 2:32:54 AM1/31/22
to ritiks...@gmail.com, adwor...@googlegroups.com
Hello Ritik,

Could you please confirm if you already follow this configuration guide for setting your YAML file. If not please do so, but if you already followed that guide and the error persists, you can reach out to the author of the Python client library as they are more equipped to provide support here. You can reach out to them by posting your concern here.

Let me know if you have any questions with provided documents. I hope it helps.

Best regards,
Google Logo
Jinky Mandaya
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VQjX2:ref
Reply all
Reply to author
Forward
0 new messages