How to Setup Logging in Python?

103 views
Skip to first unread message

Scott Clumpus

unread,
May 27, 2020, 2:00:16 PM5/27/20
to AdWords API and Google Ads API Forum
I'm trying to generate response logs when querying the Google Ads API in my python script.

Although I don't know how to setup the logging with the documentation given here: https://developers.google.com/google-ads/api/docs/client-libs/python/logging

Any advice would be appreciated.

Thanks,
Scott

Google Ads API Forum Advisor Prod

unread,
May 28, 2020, 9:27:21 AM5/28/20
to scottc...@gmail.com, adwor...@googlegroups.com
Hi Scott,

Thank you for reaching out. You can use the default logging configuration in your yaml file by un-commenting the section here. If you would like to enable detailed logs, you can change the log level to DEBUG.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q1zsLrr:ref
Reply all
Reply to author
Forward
0 new messages