Stay organized with collections
Save and categorize content based on your preferences.
Requests, responses, and summary messages made to the Google Ads API can be
logged to your own custom logger or a default logger in the Ruby library.
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.
For partial failures, the partial failure details will be logged at DEBUG.
Configuration
The logger can be configured as part of your
google_ads_config.rb
configuration. You can set up a default logger by specifying the log_level and
log_target fields, or you can specify your own logger entirely by specifying
logger. If you specify logger, then log_level and log_target will be
ignored.
You can also specify a logger after instantiating the client using
client.logger=.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-17 UTC."],[[["The Google Ads API Ruby library allows logging of requests, responses, and summaries to custom or default loggers."],["Different log levels are used for successful responses (`INFO`, `DEBUG`) and errors (`WARN`, `INFO`, `DEBUG`)."],["Logging can be configured through the `google_ads_config.rb` file using `log_level`, `log_target`, or a custom `logger`."],["After client instantiation, the logger can be specified using `client.logger=`."]]],[]]