Google Ads API is returning to beta status. Please read our blog post for more details.

Logging

Requests, responses, and summary messages made to the Google Ads API can be logged with your own custom logger or the default logger in the client library for Python.

Log Levels

The library will log different types of events to different log levels. On a successful API response, the summary will be logged at INFO, and the full request and responses will be logged at DEBUG. On a request that resulted in an API error, the summary message will be logged at WARN and the full request and response will be logged at INFO.

Configuration

The logger can be configured as part of your google-ads.yaml configuration. You can set up a default logger by specifying the log_level in the default logger or in a logger that you define. You can define your own logger by overwriting the default logger defined under the loggers[""] key in the logging configuration.

Send feedback about...

Google Ads API Beta
Google Ads API Beta
Need help? Visit our support page.