Skip to main content
A wrapper around query_ad_metrics that pre-filters to conversion metrics (counts + amounts) and curates the group_by surface to “time + source” type dimensions agents actually want here.

When to use

  • “Daily purchase count last 30 days.”
  • “Sum of revenue by ad source last week.”
  • Any question that wants a TOTAL or BUCKET, not individual rows.
For per-event rows use list_events. For ad-spend / ROAS metrics use query_ad_metrics directly.

Parameters

Output

CSV with <group_by columns>, <event_count>, <event_amount> rows:
# label_map: custom_event_2=Deal Created appears in the footer when custom events were used.