Create a metric
- Open Custom metrics in the Data menu.
- Select the ad account.
- Create a metric. Enter a key, name, description, value type, unit, and supported levels.
- Save the metric.
integer or decimal for imported values. Use count, currency, or seconds as the unit. A metric can accept account, campaign, ad set, or ad values. Keep one meaning for each metric key. If its meaning changes, create a new metric.
Calculated metrics use the amount_per_count or amount_per_spend template. Import their additive parts. The system calculates the ratio from totals.
Import a CSV file
- Select Download CSV template for the current account. The template includes active metric keys and account fields.
- Enter one value for each metric, entity, and closed account date. Enter an exact decimal in the
valuecolumn. A blank value is invalid. - Select Upload values, then select the CSV file.
- Select Prepare import. Check row errors and the preview of current and new values.
- Select Commit import when the preview is valid.
0 is a value. A missing row is unknown. A later import replaces the same metric, entity, and date. Dates that you omit stay unchanged.
Only one import can run for an ad account at a time. A failed task can leave some values applied. Check its confirmed counts. Prepare a new import to correct those values.
Read the values
In Insights, open the metric selector and choose the Custom metrics group. Select custom and Meta metrics in the same report. Use the account, entity level, and date filters. A missing value stays empty. You can also use a custom metric in a Rule. Rules use closed account dates and check all required custom inputs before they select a task. A missing input cannot pass through anOR condition or a fallback task. During an active or failed import, a Rule reads the current stored values. Run a new Rule in dry-run mode and check its decisions before you enable live actions.
Use another input method
- Custom metrics API covers API keys, JSON and CSV preparation, commit, task status, and queries.
- Custom metric MCP tools lists the tool arguments and input schemas. A fresh authorized MCP client can discover all 11 tools.