I've been trying to authenticate to google ads API using my service account using the following code in python
i have got the service account key generated as a json file. I am getting the following error:
An error occurred: The client library configuration is missing the required "use_proto_plus" key. Please set this option to either "True" or "False".Now i am confused as service account doesnt need any configuration file so where do i add this "use_proto_plus" key and solve this problem. Any help would be appreciated.
Hi,
Thank you for raising your concern to the Google Ads API team.
I understand you encountered an issue while configuring your client library. Kindly refer to this guide, additionally for more information on the needed configuration fields, check here. Since you are using a service account, you need to add a private key JSON and an impersonated email to configuration, more information on how to do this can be found on this documentation.
Please note that when reading in the configuration, the library first looks for credentials for the OAuth2 desktop or web app flows, and will use them if found. So if you want to use a Service Account authentication, make sure credentials for the other flows are not present in your configuration.
Let me know if you have any questions.
![]() |
Google Ads API Team |