Skip to content

By Campaign Custom Grouping

POST
/api/public/reports/custom-grouping

Note: With Campaign grouping, alone or with Show, Show and Episode, Country, Region, DMA, ZIP or Creative, and the Media Type column included, a Podscribe DSP campaign that buys both podcast and streaming may return two rows per period: Streaming first, then Podcast. Spend and Delivered Contracted Impressions are split between them by impressions, and their Reach can add up to more than the campaign’s combined reach. Clicks, promo codes and landing URL metrics go to a Streaming row and are omitted when there is no matching Streaming row.

Impressions, spend and attribution grouped by any combination of campaign, show, episode, publisher, creative, app, device and location, with the same filters and attribution settings as the other reports.

This endpoint utilizes a task system.

Please read the description of Get status of file processing to understand how it works.

Columns

  • Each selected grouping adds its column: Campaign, Show, Episode, Publisher, Creative ID, App, Device, Country, Region, DMA or ZIP. Metrics keep their usual names (Spend, Podcast & Streaming Impressions, optional Delivered Contracted Impressions).
  • Episode grouping always adds Episode; when fields leaves it out, it is appended at the end.
  • Show grouping adds Show ID at the end by default; an explicit fields list decides whether it is included.
  • Creative grouping also adds Creative Name: the saved name, or the Creative ID when there is none. fields and fieldMapping apply to it.
  • Campaign with one location grouping uses the Geo column; an explicit fields list decides whether it is included.

Groupings

  • publisher is the publisher assigned to the purchase, as in By Publisher, not the one received in a pixel. With Show groupings, Publisher and Publisher ID come from purchases that contributed to that show or episode, run-of-network included, and fall back to the show’s publisher when none is found.
  • Campaign + Publisher gives one row per campaign, publisher and period, with spend summed and rounded to two decimals.
  • app is the listener application. Missing App and Device values are exported as Unknown; delivery stays in its original group.

Size limit

A request over the report complexity limit returns HTTP 400. Complexity grows with the groupings, the date range and the time grouping; Episode + ZIP also counts the selected campaigns and episodes, and Delivered Contracted Impressions adds to it. Shorten the date range, select fewer campaigns or episodes, or drop a grouping. Excluding campaigns does not lower it.

By Campaign Custom Grouping
curl --request POST \
--url https://backend.podscribe.ai/api/public/reports/custom-grouping \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "advertiser": [ "example" ], "startDate": "2026-04-15", "endDate": "2026-04-15", "groupings": [ "campaign" ], "timeGrouping": "all", "aggregateEpisodicBuysPerShow": true }'
Media typeapplication/json
advertiser
Array<string>
startDate
string<date> | integer
Allowed range: (≥ 0)
endDate
string<date> | integer
Allowed range: (≥ 0)
groupings
required
Array
Allowed length: (non-empty)
unique items
Allowed values: campaign show episode publisher creative app device country region DMA zip
6 moreLess
timeGrouping
Allowed values: all day week month
aggregateEpisodicBuysPerShow

Combine episodic buys for the same campaign and show instead of separating episode rows.

boolean

File-processing task created or reused.

Media typeapplication/json
id
string
status
string
url
string
Response example
{
"id": "example",
"status": "example",
"url": "example"
}