Google Ads API:FileNotFoundError: [Errno 2] No such file or directory

Published on:
Last updated:

This post is also available in: 日本語 (Japanese)

When using Google Ads API( ex. generate_keyword_ideas.py ), I got the following error, so I write an article as a memo.


FileNotFoundError: [Errno 2] No such file or directory

For example in the case running "generate_keyword_ideas.py", you need to set the PATH to "google-ads.yaml" in the argument of GoogleAdsClient.load_from_storage().


- googleads_client = GoogleAdsClient.load_from_storage(version="v14")
+ googleads_client = GoogleAdsClient.load_from_storage("path/to/google-ads.yaml", version="v14")

Reference URL:
https://developers.google.com/google-ads/api/docs/client-libs/python/configuration

No tags for this post.

About
Kuniyoshi Takemoto is the founder of Amelt.net LLC, and editor of this blog(www.amelt.net).Learn more and follow me on LinkedIn.