Hello,
I hope this message finds you well. I'm writing to seek assistance with an issue I am encountering while using the Google Ads API in Python.
ContextI am working on a project that involves retrieving data from the Google Ads API. My application is supposed to authenticate using credentials stored in a dictionary and then fetch data for a specific client.
ProblemWhen I attempt to execute my code, I receive the following error message:
This error seems to indicate that a method in my code expects a file path rather than a dictionary.
Error DetailsThe error occurs when I try to load client configuration using the load_from_storage method of the GoogleAdsClient class. I passed a dictionary containing my API credentials to this method, which seems to be the source of the problem. The traceback indicates the issue is with a function expecting a string or file path type, but it's receiving a dictionary instead.
Steps TakenCould you please provide guidance on how to correctly load credentials and resolve this TypeError? Any suggestions on the correct method to use for loading credentials would be greatly appreciated.
Thank you for your time and assistance.
Best regards,
Daniel