Skip to main content
List ad accounts, campaigns, ad sets, or ads — with optional metric aggregation — from the ads-platform integrations connected to your pixel. Wraps POST /api/query-channel-details — see the API reference. The grain is controlled by --dimensions:
  • omit it for account grain (the default; one row per ad account across every connected platform — Facebook, Google, TikTok),
  • pass exactly one of campaign, adset, or ad for that grain.
When --date-start / --date-end are omitted, the response is an entity-only listing (no metric aggregation). To scope by ad platform, use a canonical filter on channel.resource_source (not a dimension).

Usage

Required flags

Optional flags

See upstack query for the shared output / from-file flags.

Examples

See also

  • upstack filters — discover valid filter fields, operators, and applicable contexts (every channel.* field is valid here).
  • upstack measures — list measure ids available across all query endpoints.