私は、このリファレンスガイドの手順次のPythonのAdWords APIをインストールしてみてください:https://github.com/googleads/googleads-python-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-libraryPythonのアドオンAPIをインストールする - '指定されたyamlファイル%sを開くことができませんでした。' %パス「)
すべては大丈夫ですが、最後のステップ(6)で、私は1つの問題があります。私は、コードを実行してみてください
:
from googleads import adwords
# Initialize the AdWords client.
adwords_client = adwords.AdWordsClient.LoadFromStorage()
、エラーは次のとおりです。
> >pythonw -u "teste_adwords_api.py" Traceback (most recent call last): File "teste_adwords_api.py", line 3, in <module>
> adwords_client = adwords.AdWordsClient.LoadFromStorage() File "C:\Users\Flávio\Google Drive\BI Caiçara\Python\googleads\adwords.py",
> line 243, in LoadFromStorage
> cls._OPTIONAL_INIT_VALUES)) File "C:\Users\Flávio\Google Drive\BI Caiçara\Python\googleads\common.py", line 128, in
> LoadFromStorage
> 'Given yaml file, %s, could not be opened.' % path) googleads.errors.GoogleAdsValueError: Given yaml file,
> C:\Users\Flávio\googleads.yaml, could not be opened.
私googleads.yamlは次のとおりです。
xxxxは私のパスワードキー あるadwords:
client_id: xxxxxxx
client_secret: xxxxxx
refresh_token: xxxxxx
私は何のpr私のインストールプロセスでは、oblem。