Get inventory metrics
get_inventory_metricsReturn counted Plainrouter arrivals beside daily Meta metrics for mirrored campaigns, ad sets and ads. object_metrics contains account-timezone daily comparisons; unmatched_arrivals is one workspace/window count without unknown IDs. Counts are null when the arrivals store is disabled. Optional change history shows who changed what, and whether it came through Plainrouter, within plan retention. basis_note explains how the two counts differ.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>"
},
"name": "get_inventory_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | No | Limit metrics to this ad ID. | |
| limit | No | Maximum rows per collection; byte budgets may return fewer. | |
| cursor | No | Continue all four collections using next_cursor with the same filters and include_changes. | |
| adset_id | No | Limit metrics to this ad set ID. | |
| end_date | No | Inclusive end date in YYYY-MM-DD format. | |
| account_id | Yes | Advertising account ID available to the authorized workspace. | |
| start_date | No | Inclusive start date in YYYY-MM-DD format. | |
| campaign_id | No | Limit metrics to this campaign ID. | |
| workspace_id | No | Workspace ID returned by list_workspaces. Required when this credential reaches multiple workspaces. | |
| include_changes | No | Include object diffs and account activities: who changed what, and whether it came through Plainrouter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | Yes | ||
| account | Yes | ||
| changes | Yes | ||
| metrics | Yes | ||
| staleness | Yes | ||
| activities | Yes | ||
| basis_note | Yes | ||
| pagination | No | ||
| next_cursor | No | ||
| object_metrics | Yes | ||
| effective_range | Yes | ||
| activity_history | Yes | ||
| unmatched_arrivals | Yes |