Ich versuche, im Anschluss an die Schritte dieses Nachschlagewerk die adwords api für Python installieren: https://github.com/googleads/googleads-python-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-libraryInstallieren Sie Adwords Api für Python - 'Vorgegebene Yaml-Datei,% s, konnte nicht geöffnet werden.' % Pfad)‘
Alles in Ordnung ist, aber im letzten Schritt (6), ich habe ein Problem.
Ich versuche, den Code ausführen:
from googleads import adwords
# Initialize the AdWords client.
adwords_client = adwords.AdWordsClient.LoadFromStorage()
Und Fehler ist:
> >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.
Mein googleads.yaml ist:
adwords:
client_id: xxxxxxx
client_secret: xxxxxx
refresh_token: xxxxxx
Wo xxxx meine Passwörter Schlüssel ist
Ich kann nicht verstehen, was pr Problem in meinem Installationsprozess.