JSON key file in python

163 views
Skip to first unread message

job....@conversioncompany.com

unread,
Nov 1, 2016, 10:03:05 AM11/1/16
to AdWords API Forum
Hi all,

We are trying to build an example report using a service account json for credentials in Python. For Java this seems to work using an ads.properties and the 'OfflineCredentials' builder with the property 'api.adwords.jsonKeyFilePath'

Using Python however I cannot find any example using a similar setup. Any suggestions to get this to work?

Thx,
Job

Shwetha Vastrad (AdWords API Team)

unread,
Nov 1, 2016, 10:25:36 AM11/1/16
to AdWords API Forum
Hi Job,

To use service account flow in the AdWords API Python client library, you need to provide the configuration values (service_account_email and path_to_private_key_file) in the googleads.yaml file.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages