query_metric_aggregates
Analyze and aggregate metric data by specifying measurements, timeframes, and grouping dimensions to extract actionable insights for marketing performance.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_date | No | Custom end date (ISO format, overrides timeframe) | |
group_by | No | Dimensions to group by | |
measurement | Yes | Measurement to use (e.g., count, sum, unique) | |
metric_id | Yes | ID of the metric to aggregate | |
start_date | No | Custom start date (ISO format, overrides timeframe) | |
timeframe | Yes | Timeframe to use (e.g., last_30_days, this_month) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"end_date": {
"description": "Custom end date (ISO format, overrides timeframe)",
"type": "string"
},
"group_by": {
"description": "Dimensions to group by",
"items": {
"type": "string"
},
"type": "array"
},
"measurement": {
"description": "Measurement to use (e.g., count, sum, unique)",
"type": "string"
},
"metric_id": {
"description": "ID of the metric to aggregate",
"type": "string"
},
"start_date": {
"description": "Custom start date (ISO format, overrides timeframe)",
"type": "string"
},
"timeframe": {
"description": "Timeframe to use (e.g., last_30_days, this_month)",
"type": "string"
}
},
"required": [
"metric_id",
"measurement",
"timeframe"
],
"type": "object"
}