Profit Margin = (gross_revenue - amount_spent) / gross_revenue. These behave like first-class metric slugs in query_ad_metrics.
When to use
- The user references a metric name that isn’t in the standard catalog (“show my LTV efficiency metric”). Confirm the slug exists here before passing it to an analytics tool.
- To enumerate every space-defined calculation as part of an overview.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | csv (default), json, or yaml. |
Output
type is one of number, currency, or percent. expression is a human-readable rendering of the formula tokens (order matters for the calculation).