> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a reporting pipeline

> Read delivery into your application, export aggregates, or configure scheduled data delivery to your own storage.

You can use Apostra as the source for a dashboard, a daily reporting job, or an
agent that checks campaign performance. Start by deciding whether you need an
interactive aggregate, a downloadable aggregate, or a recurring data feed.

| Outcome | Use | Who runs the schedule |
| - | - | - |
| Answer an agent's question about one campaign | v3 MCP `get_delivery`, read live from that campaign's connected provider | Your client, when requested |
| Answer an aggregate delivery question | v3 MCP `get_delivery` with explicit metrics, dimensions, and scope | Your client, when requested |
| Refresh a dashboard or warehouse table | v3 MCP stored delivery reads or v2 REST reporting reads | Your application |
| Download aggregate campaign data as CSV | v2 REST reporting with `download=true` | Your application |
| Receive supported log-level data in your cloud storage | v2 Data Delivery credentials and outputs | Apostra's configured Data Delivery schedule |

These are different data products. A CSV aggregate is not a raw event feed, and
a notification is not a reporting export.

## 1. Prove access and choose the report

For MCP, call `get_status` and verify the active account. Inspect the current
`get_delivery` schema before choosing a report.

* A Buyer Account uses `report: "live_campaign_delivery"` for one exact
  connected-provider campaign, or `report: "campaign_delivery"` for stored
  aggregate rows.
* A Seller Account uses `report: "delivery"` for seller-reported delivery, or
  `report: "margin"` for its cumulative spread ledger.
* An integrated Media Company can also read `live_campaign_delivery` for one exact
  own-supply campaign. This does not grant a
  Seller credential general access to Buyer REST reporting.

For REST, use a credential authorized for the relevant Buyer API. A v3 MCP
OAuth token cannot be used on REST. See [Authentication](https://docs.apostra.com/v3/authentication.md).

## 2. Read a bounded delivery window

For a stored Buyer Account aggregate, call `get_delivery`:

```json theme={null}
{
  "report": "campaign_delivery",
  "metrics": ["impressions", "clicks", "spend", "ctr"],
  "dimensions": ["date", "campaign", "media_buy"],
  "range": {
    "startDate": "2026-09-01",
    "endDate": "2026-09-07"
  },
  "filters": { "campaignId": "CAMPAIGN_ID" },
  "limit": 25
}
```

Replace the campaign ID and dates with the scope you intend to read. Explicit
date ranges are inclusive UTC dates and support at most 90 days. Buyer campaign
delivery also supports `range: {"lifetime": true}`; a `packageId` filter requires
a bounded range instead. Follow the returned pagination contract until all
requested rows are read.

Delivery summaries label explicit periods as UTC dates. They do not convert the
requested reporting range to a campaign or advertiser timezone.

Metrics use AdCP's delivery metric names:

| Kind | Metrics |
| - | - |
| Counts and money, summed | `impressions`, `clicks`, `spend`, `views`, `completed_views`, `quartile_100` (video completions), `conversions`, `leads`, `conversion_value`, `viewable_impressions`, `measurable_impressions` |
| Rates, computed from the summed counts | `ctr`, `cpm`, `cost_per_click`, `cost_per_acquisition`, `completion_rate`, `viewable_rate` (`viewable_impressions` ÷ `measurable_impressions`), `roas` |

A metric the seller did not report is returned as unavailable, never as zero.
Viewability, for example, is unavailable for delivery whose seller measured none.

Every row and total carries a `finality` label: Official (final, eligible for
billing), Snapshot (provisional), or unavailable when the delivery has no
revision evidence. Figures of different finality are never added together.
Rows are split by finality, and when matched delivery spans more than one
class, `totals` gives no figure (each metric reads `finality_mixed`) and
`totalsByFinality` gives one total per class.

### Join package rows to your own data

With `package` in `dimensions`, each `campaign_delivery` row names its package
in `rows[].dimensions.package`:

| Field | What it is |
| - | - |
| `id` | Apostra's package id. |
| `productId`, `productName` | The product the package was bought from. |
| `sellerPackageId` | The seller's own id for the package, or `null` when it is not known. It equals `id` when Apostra runs the inventory source, because Apostra is then the seller. |

When one creative serves several packages, the seller fills a `{PACKAGE_ID}`
macro with its own id, so your landing pages and trackers may receive the
seller's id rather than ours. Match the id your URL carries against `id` or
`sellerPackageId`, whichever it is. In AdCP's own delivery report, the seller's
id is `by_package[].package_id`.

For the current connected-provider response instead, use the additive live
mode:

```json theme={null}
{
  "report": "live_campaign_delivery",
  "range": {
    "startDate": "2026-09-01",
    "endDate": "2026-09-07"
  },
  "filters": { "campaignId": "CAMPAIGN_ID" }
}
```

The live mode accepts one exact campaign and no metrics, dimensions, other
filters, or cursor. It preserves the validated provider response.

When the campaign exists but none of its media buys is live at a provider, for
example because every buy was cancelled or its seller became unavailable, the
call returns `LIVE_PROVIDER_UNAVAILABLE` instead of `NOT_FOUND`. The response
lists the campaign's buys under `details.mediaBuys` with each buy's `status`
(such as `canceled`) and, when one is recorded, an `errorCode` (such as
`source_unavailable`). The list holds at most 25 buys, newest first;
`details.mediaBuyCount` is the total, so a count above 25 means the list is
cut short. Tell
the person there is nothing live to report. Use `campaign_delivery` for
delivery stored before the buys ended. `NOT_FOUND` still means the campaign
does not exist in the active account. If Apostra cannot check the campaign's
state at that moment, the call returns a retryable `SERVICE_UNAVAILABLE`
instead, and neither answer is known.

The same `LIVE_PROVIDER_UNAVAILABLE` answer covers a campaign that has not
started delivering yet. When the provider cannot return delivery, whatever the
way it fails (a refusal, a failed or incomplete report, an error), and every buy
is either waiting to start (a draft, pending approval, or a flight start still
ahead) or has ended, the `message` says what each waiting buy is waiting on, for
example that no creatives are attached yet, and the start time of a flight that
has not begun. Tell the person nothing has delivered yet, and read live delivery
again once the flight has started. A campaign with any buy whose flight has
started does not get this answer, and neither does a refused credential or a
rate limit, which keep their own errors. If the provider can answer, including
with zeros, its answer is returned.

If the provider refuses the read for a campaign that has started, the call
returns `SERVICE_UNAVAILABLE` with `details.reason` of
`provider_rejected_delivery_read` and the provider's own code in `details.code`.
This is the provider's answer, not a statement that your input is wrong: the
read carries only the campaign and the date range you gave. Retry later, and if
it keeps failing, check the campaign at the provider or contact support. A
refused credential is a different failure and keeps its own error.

A campaign whose media buy has no stored provider route or identity cannot be
read at all, and retrying cannot change that. The call returns
`SERVICE_UNAVAILABLE` with `details.reason` of
`provider_media_buy_identity_missing`, `recovery: "terminal"` and a suggestion
not to retry. Use `campaign_delivery` for delivery stored earlier, and ask
Apostra Support to repair the media buy's provider binding or recreate the
campaign. Use the
[buyer](https://docs.apostra.com/v2/setup/v3/buyer-workflows.md#7-query-campaign-delivery) or
[seller](https://docs.apostra.com/v2/setup/v3/seller-workflows.md#query-delivery-and-margin) reference for
the report available to your account.

Preserve the report type, account and resource scope, requested dimensions or
provider reporting period, currency, and time of extraction with the result.

### Read delivery by site or app

Add `property` to the `dimensions` of a stored `campaign_delivery` read to see
which sites and apps your ads ran on, with the property scores you saved in force
on each day. Use it to check that a score floor held, for example that no
impression ran on a site scored below 20.

```json theme={null}
{
  "report": "campaign_delivery",
  "dimensions": ["date", "property"],
  "range": { "startDate": "2026-11-01", "endDate": "2026-11-07" },
  "filters": { "campaignId": "CAMPAIGN_ID" },
  "limit": 100
}
```

`property` is a Buyer Account read of your own media buys, and it is in the
buyer beta: an account that is not on the beta gets `FEATURE_NOT_ENABLED`. Your
property scores themselves are not part of the beta.
It always needs `date`, because a row is one property on one UTC day. It can
also be split by `media_buy` and `package`, which are the only other things the
tracker records. `impressions` is the only metric, because a row has no spend or
other measure. A call that asks for anything else is refused with a message
naming the field, never answered with part of it dropped: another dimension or
metric, a `currency`, a `productId` filter, or a `lifetime` range. Use a
bounded range of at most 90 days. The `advertiserId`, `campaignId`,
`channelGroupId`, `mediaBuyId` and `packageId` filters narrow the read.

The request still names `report: "campaign_delivery"`, but the answer has
`report: "campaign_property_delivery"`, because its rows are a different shape
from the stored seller rows. Read `report` to tell the two answers apart. The
answer has no `totals`: a row can count an impression that also appears in the
row of another property, so rows do not add up.

Each row is one property on one day:

```json theme={null}
{
  "dimensions": {
    "date": "2026-11-03",
    "property": { "type": "subdomain", "value": "www.site-a.nl" }
  },
  "metrics": { "impressions": { "value": 1200, "status": "available" } },
  "propertySource": "tracker",
  "billable": false,
  "estimated": true,
  "features": { "spektre_aspi": { "value": 94 } },
  "scoreMatches": {
    "spektre_aspi": {
      "basis": "registrable_domain",
      "identifier": { "type": "domain", "value": "site-a.nl" }
    }
  }
}
```

| Field | What it is |
| - | - |
| `dimensions.property` | The site or app as the tracker recorded it, lowercased, as an AdCP identifier. `type` is `subdomain` for a host with a subdomain part such as `www.site-a.nl`, `domain` for any other host, and `bundle_id` for an app, because the tracker does not record which app store an app is from. `www.site-a.nl` and `site-a.nl` are separate rows. |
| `propertySource` | Always `tracker`: the row was counted by our impression tracker. |
| `billable`, `estimated` | Always `false` and `true`. A tracker row is an estimate and is not what you are billed on. |
| `metrics.impressions` | Impressions the tracker recorded for that property. There is no spend. |
| `features` | Your scores for the property in force at the end of that UTC day, as AdCP property feature values. It is empty when no score applies, and always empty for an app: the tracker does not record which store an app comes from, so a score saved for an iOS bundle, an Android package or a store id cannot be matched to it safely. |
| `scoreMatches` | For each score, the saved identifier it came from and the `basis`: `exact_host` when it is saved for that very host, or `registrable_domain` when it is saved for the registrable domain (`www.site-a.nl` uses the score saved for `site-a.nl`). If a host is saved as both a `domain` and a `subdomain` with different scores, the row has no score for that feature. |

Scores follow your saved history. A score saved or changed during a UTC day
counts for that day, and one saved at the next midnight does not. A day before
the first save has no score, and nothing is backfilled. An exact host wins over
its registrable domain for the same feature. Apps get no score yet: scores for
apps will follow once the tracker can record which store an app comes from.

The response also carries `propertyDelivery`, with one entry per seller that had
tracker impressions in scope, over the whole range and not only the returned
page:

| Field | What it is |
| - | - |
| `seller` | The seller's id and name, or `null` for buys booked across several sellers or none. |
| `trackerImpressions`, `impressionsWithProperty` | All the tracker's impressions for that seller, and those that carried a site, an app or both. |
| `fillShare` | `impressionsWithProperty` divided by `trackerImpressions`. |
| `sellerReportAvailable` | Always `false` today: no seller's per-property report is read, so every row comes from the tracker. |

`propertyDelivery.mediaBuysRead` counts the buys in scope the tracker could be
asked about. A buy whose tracker id another account also holds is not read.

#### What tracker rows can and cannot show

* **Only buys that reach our tracker.** A row exists only where an impression
  fired our pixel and the seller's ad server filled the site or app macro
  (`{DOMAIN}` or `{APP_BUNDLE}`). A buy whose creatives do not fire our pixel,
  such as a format with no slot for it, is missing. A seller that does not fill
  the macro leaves part of its delivery with no property.
* **Fill share says how much of a seller's delivery the rows can see.** Only a
  `fillShare` of 1 shows every tracked impression's site or app, so only then
  does a site with no row mean the ad did not run there. Below 1, some
  impressions carried no site or app and could have run anywhere, including on
  a site with no row: a high share gives confidence, not proof. A low share
  shows where the ad ran only in part. When neither source covers a flight,
  the result for a floor is inconclusive, not clean.
* **Estimated, not billable.** Counts follow the certification basis:
  impressions only, duplicate pings of one impression counted once, and crawler
  hits removed. They can differ from what the seller reports and bills. Hits from
  roughly the last hour may not be readable yet.
* **Impressions only.** Clicks never produce rows, and an impression that
  carried neither a site nor an app produces none. An impression that carried
  both a site and an app is counted in the row of each, so do not total rows
  across properties.
* **Your own buys.** The read covers the media buys of your account, with no
  minimum group size, because you see only your own delivery.
* **Bounded.** A page holds at most 100 rows; follow `nextCursor` as for any
  `campaign_delivery` read. A read covers at most 1,000 media buys and 50,000
  tracker rows; when it would exceed either, narrow the range or the buys.

## 3. Preserve what the data means

Your consumer should carry coverage, warnings, finality, and unavailable values
alongside the numbers. Do not turn a missing source value into zero or describe
seller-reported delivery as independent buyer measurement. Finality alone is
not evidence that an amount is eligible for billing.

A stored `campaign_delivery` read returns rows only for campaigns whose delivery
has reached Apostra. An account-wide read can therefore leave out a campaign
that was in flight during the range. That campaign is missing, not at zero.

On an account-wide read over a bounded range, the response carries `coverage`
so you do not have to work out which campaigns are missing:

```json theme={null}
{
  "coverage": {
    "inFlightCampaigns": 9,
    "withoutStoredRows": {
      "count": 1,
      "truncated": false,
      "campaigns": [
        {
          "campaignId": "CAMPAIGN_ID",
          "campaignName": "Autumn launch",
          "nextAction": {
            "tool": "get_delivery",
            "arguments": {
              "report": "live_campaign_delivery",
              "range": { "startDate": "2026-09-01", "endDate": "2026-09-07" },
              "filters": { "campaignId": "CAMPAIGN_ID" }
            }
          }
        }
      ]
    }
  }
}
```

* `inFlightCampaigns` counts the campaigns in scope with a current media buy
  that was booked or running during the range. Draft, failed, rejected and
  canceled buys do not count.
* `withoutStoredRows` lists the in-flight campaigns that have no stored rows,
  up to 20. `count` is the full number, and `truncated` is true when the list is
  shorter than `count`.
* Each `nextAction` is the exact call that reads that campaign from its
  connected provider. The stored rows, totals and paging are unchanged.

`coverage` appears only when the read is account-wide: a bounded date range with
no filter other than `advertiserId`. An `advertiserId` filter narrows the list
to that advertiser. A read filtered to one campaign, media buy, package,
product or channel group, and a lifetime read, return no `coverage`.

### How current each seller's delivery is

A seller's delivery reaches Apostra on the schedule its products declare: a
day or two after the day it covers for a daily reporter, or after each week
for a weekly one. If a seller stops sending it, the media buy has no rows for
the days since, and a read cannot show that as zero. So every stored
`campaign_delivery` response carries `deliveryFreshness`, which says, for each
media buy in scope, the last day Apostra holds delivery for, the day its
delivery is due through, and whether it is behind:

```json theme={null}
{
  "deliveryFreshness": {
    "staleMediaBuys": 1,
    "mediaBuys": [
      {
        "mediaBuyId": "mb_123",
        "campaignId": "CAMPAIGN_ID",
        "seller": { "id": "15", "name": "Ozone" },
        "lastDayHeld": "2026-08-16",
        "dueThrough": "2026-11-08",
        "overdueDays": 45,
        "stale": true
      },
      {
        "mediaBuyId": "mb_456",
        "campaignId": "CAMPAIGN_ID",
        "seller": { "id": "22", "name": "Example Seller" },
        "lastDayHeld": "2026-11-07",
        "dueThrough": "2026-11-07",
        "overdueDays": 0,
        "stale": false
      }
    ]
  }
}
```

In this example, read on 10 November, the first buy's products declare no
schedule, so its delivery is due through 8 November; its flight ended on
30 September, so the 45 days from 17 August to 30 September are overdue. The
second buy's seller reports weekly, and its next week, 8 to 14 November, is not
due yet, so it is current.

| Field | What it means |
| - | - |
| `staleMediaBuys` | How many media buys in scope are stale, including any left out of the list. |
| `mediaBuys[].seller` | The seller the buy's products are bought from, or `null` when they come from more than one. |
| `mediaBuys[].lastDayHeld` | The last UTC day Apostra holds any delivery for the buy, whatever range you asked for. A day the seller reported as zero counts. `null` when Apostra holds none. |
| `mediaBuys[].dueThrough` | The last UTC day whose delivery is due now for this buy, by its reporting schedule (below). |
| `mediaBuys[].overdueDays` | Days inside the buy's flight, after `lastDayHeld` and up to `dueThrough`, with no delivery. |
| `mediaBuys[].stale` | `true` when `overdueDays` is 1 or more. |
| `mediaBuysOmitted` | Media buys left out of the list, which holds at most 50. Absent when none are. |

**When delivery is due.** Each buy is judged against the reporting schedule its
products declare in their reporting capabilities: how often they report
(`available_reporting_frequencies`) and how long after a period ends the report
arrives (`expected_delay_minutes`).

* A product reports at the frequency the media buy asked for when it offers
  that frequency, and otherwise at the most frequent one it lists. When a buy's
  products differ, the most frequent of them applies, and the longest delay.
* Periods run back to back from the day after `lastDayHeld`, or from the
  flight start when Apostra holds nothing. Hourly and daily periods are one
  day, weekly seven, monthly 31 and quarterly 92.
* A period is due once it has ended and its delay has passed. `dueThrough` is
  the last day of the last due period. When the flight ends inside a period,
  the days up to the flight end are due once the flight has ended and the delay
  has passed.
* When a buy's products declare no schedule, a day is due two days after it
  starts: on 10 November, delivery is due through 8 November.

So a seller that reports weekly is not stale between its reports, only once a
whole week is due and missing.

Read it like this:

* **A stale buy is missing data, not zero delivery.** Its seller may still be
  delivering. Treat its rows as incomplete after `lastDayHeld`, and ask the
  seller for its delivery rather than reporting a drop.
* **Zero is not stale.** A buy whose seller reported zero delivery on every
  day through its `dueThrough` is current, and its zeros are real.
* **A buy whose flight has ended can still be stale.** If its delivery stopped
  before the flight ended, the missing days stay overdue. A buy whose delivery
  runs to its flight end is not stale.
* **A gap followed by later delivery does not make a buy stale.** Only the days
  after the last day held count.

The list covers every media buy in the read's scope that is active, paused or
completed and whose flight overlaps the range you asked for (every such buy on
a lifetime read), including buys with no rows in the range. Filters narrow it
the same way they narrow the rows. Stale buys come first, most overdue first. A
flight that starts `asap` counts from the day the buy was booked.

The other fields keep their meaning: a row's `dataThrough` and `finality` still
come only from the seller's reporting revision, and `coverage` still names
campaigns with no rows. `deliveryFreshness` is absent for synthetic demo data,
and when it could not be read; the text answer then says so, and the rows and
totals are returned as usual. It is also absent when more than 2,000 media buys
are in scope. The text answer then asks you to narrow the read with an
advertiser, campaign or media buy filter, or a shorter range.

For stored Buyer campaign delivery, `totals` covers every matched row, not just
the current page. Do not add the repeated totals from successive pages. Unless
you send `currency`, mixed currency results are not converted: monetary totals
can be unavailable while counts remain usable. Keep each row's currency with its
monetary values. To read every row and the totals in one currency, see
[Converting into one currency](https://docs.apostra.com/v3/reporting-pipeline.md#converting-into-one-currency).

### Conversions already applied

Stored Buyer campaign delivery reports each media buy's spend in its
advertiser's currency. When a seller reports a buy's spend in another currency,
Apostra converts it before the rows are built, so `spend`, `conversion_value`
and the cost metrics on those rows are converted figures, not the numbers the
seller sent. The response states every conversion it applied in
`currencyConversions`:

```json theme={null}
{
  "currencyConversions": [
    {
      "mediaBuyId": "MEDIA_BUY_ID",
      "fromCurrency": "USD",
      "toCurrency": "BRL",
      "rate": 5.42,
      "rateDate": "2026-09-01",
      "rateSource": "booked"
    }
  ]
}
```

* There is one entry for each media buy behind the page's rows whose spend was
  converted, ordered by `mediaBuyId`. The field is absent when none was.
* `fromCurrency` is the currency the spend was in before conversion: the
  currency the seller reported, or the currency the seller is paid in when the
  seller's label disagrees with it. `toCurrency` is the advertiser's currency.
* `rate` is the number of `toCurrency` units per one `fromCurrency` unit.
* `rateSource` says where the rate came from:
  * `booked`: the rate locked when the buy was booked.
  * `snapshot`: Apostra's daily rate store, for the day the buy was created,
    used for a buy booked without a locked rate.
  * `settlement`: the seller labelled the spend with a currency it is not paid
    in. Apostra takes the spend in the currency the seller is paid in, which is
    the advertiser's currency, at a rate of 1. `fromCurrency` and `toCurrency`
    are then the same, and `rateDate` is null because no rate was looked up.
* `rateDate` is the UTC date of the rate.
* The list holds at most 100 entries. When more buys behind the page were
  converted, `currencyConversionsOmitted` gives the number left out; it is
  absent otherwise. Group by `media_buy` or narrow the filters to see each one.
* The entries cover the buys behind this page's rows, while `totals` covers
  every matched row, so a converted buy that appears only on a later page is in
  the totals but listed on that later page.

The conversions are stated whether or not you need them. Keep each entry with
the rows of its media buy so a converted figure is never read as the seller's
own number.

### Converting into one currency

Send `currency` with `report: "campaign_delivery"` to read money on every row
and on the totals in one currency:

```json theme={null}
{
  "report": "campaign_delivery",
  "range": { "startDate": "2026-09-01", "endDate": "2026-09-30" },
  "dimensions": ["campaign"],
  "currency": "EUR"
}
```

`currency` is an uppercase ISO-4217 code, one of AUD, BRL, CAD, CHF, CNY, DKK,
EUR, GBP, HKD, IDR, INR, JPY, KRW, MXN, NOK, NZD, PLN, SEK, SGD, USD and ZAR:
the currencies Apostra's daily rate store prices. Any other code is refused. It
applies to `campaign_delivery` only. `live_campaign_delivery`, seller
`delivery` and `margin` refuse it: the live report is the seller's own payload,
and seller reports are not converted.

The conversion happens after [conversions already applied](https://docs.apostra.com/v3/reporting-pipeline.md#conversions-already-applied),
so it starts from each row's advertiser currency:

* **Each day converts at that day's rate.** A row that spans several days,
  because `date` is not one of its dimensions, is converted day by day and then
  added up. A range that spans a currency move therefore reads correctly.
* **Rates come from the daily rate store.** It holds one rate per currency per
  UTC day against USD, and other pairs are crossed through USD. When a day has
  no rate, the most recent rate from up to 7 days before is used. Reading
  delivery never creates a rate.
* **Counts do not change.** Impressions, clicks, conversions and the other
  counts are never converted. `cpm`, `cost_per_click`, `cost_per_acquisition`
  and `roas` are worked out again from the converted money.
* **A row with a day that has no rate is not converted.** It keeps its own
  `currency` and values, so a row whose `currency` differs from the one you
  asked for was not converted. `totals` then reports money metrics as
  unavailable with `reason: "fx_rate_unavailable"` and `currency` as null,
  rather than adding a partial sum. Counts still total.
* **Rows that differed only by currency become one row** once both are
  converted.
* **Goal progress is not converted.** `goalProgress` stays in each campaign's
  own currency.

The response says what it did in `conversion`:

```json theme={null}
{
  "conversion": {
    "currency": "EUR",
    "rateBasis": "daily",
    "rateSource": "snapshot",
    "carriedForwardDays": 0,
    "unconverted": [{ "currency": "IDR", "date": "2026-09-14" }]
  }
}
```

* `rateBasis` is always `daily` and `rateSource` is always `snapshot`, the
  daily rate store.
* `carriedForwardDays` is the most days any rate used was carried forward from
  an earlier day, at most 7. It is 0 when every rate was the day's own.
* `unconverted` lists each source currency and day that had no rate, ordered by
  currency then date, at most 100. `unconvertedOmitted` gives the number left
  out and is absent otherwise. It covers every matched row, like `totals`.

`conversion` is absent when you do not send `currency`, and the response is
then exactly what it is without the option. A `nextCursor` belongs to the query
that returned it, including its `currency`. If the rates cannot be read, the
call returns `SERVICE_UNAVAILABLE`; retry, or omit `currency` to read each row
in its own currency.

Converted figures are for reporting. Billing keeps the rate locked when a buy
was booked, so a converted spend can differ from what is invoiced.

Live Buyer campaign delivery does not come from Apostra's reporting store and
does not claim reporting-pipeline finality. Keep the returned currency and any
unavailable values or warnings with the provider totals.

### Delivery from Google Ad Manager sellers

Some sellers sell Google Ad Manager (GAM) inventory through a sales agent
Apostra runs for them. Their products' `reporting_capabilities` declare an
`expected_delay_minutes` of at least 240 and list `unfiltered_impressions` from
`google.com` in `vendor_metrics`.

#### GAM impressions and clicks are filtered for invalid traffic

`impressions` and `clicks` from these sellers are GAM's ad-server counts, after
GAM has removed the traffic it judged invalid. Google says Ad Manager "discards
impressions and clicks that are considered invalid"
([how Ad Manager counts impressions and clicks](https://support.google.com/admanager/answer/2521337)),
and that its metric totals are net of General Invalid Traffic (GIVT) filtration
and some Sophisticated Invalid Traffic (SIVT) filtering techniques
([Ad Manager's invalid traffic methodology](https://support.google.com/admanager/answer/7214243)).

The seller also reports `unfiltered_impressions` and `unfiltered_clicks`, AdCP
vendor metrics from `google.com`. They are GAM's counts before invalid-traffic
filtering, for comparison: the gap between the unfiltered and filtered counts
is the traffic GAM judged invalid. They are on each package's
`vendor_metric_values` in the `delivery` payload of a `live_campaign_delivery`
read. Stored `campaign_delivery` rows carry the filtered counts only.

#### How often GAM delivery arrives

Delivery from these sellers comes in two forms: provisional figures within
minutes, and daily figures once GAM has counted each day.

**Provisional figures, about every 15 minutes.** While a buy runs, the seller's
agent re-reads its live GAM line items about every 15 minutes. Apostra reads the
result from the agent every 5 minutes, as each package's snapshot: impressions,
clicks and spend since the flight started. So new figures reach you within about
5 minutes of the agent capturing them. A buy is read this way from the start of
its flight for as long as the seller reports it active.

You see these figures in [Campaign Pulse](https://docs.apostra.com/v3/campaign-pulse.md), labelled
provisional. They are not final and not billable, and they are kept apart from
the delivery reads on this page: `campaign_delivery` rows and
`live_campaign_delivery` reads never include them. The provisional and daily
figures come from different GAM reads, and GAM can still revise its counts, so
the daily figures for a day can differ from the provisional ones you saw during
it.

**Daily figures, twice a day.** GAM needs about four hours to count delivery,
and these products report daily in the network's timezone
(`reporting_capabilities.timezone`). Apostra reads each live buy from the seller
twice a day, at 02:00 and 14:00 UTC. It reads more often until a buy's first
figures arrive, and keeps reading twice a day for seven days after the buy ends,
to pick up GAM's revisions.

So a day's figures fill in over the reads during and after it, about four hours
behind GAM. How long before you see the whole day depends on the network's
timezone: the day is whole at the first read at least four hours after it ends.
For a network in the Americas or Europe, that is usually the 14:00 UTC read the
next day. For one in Asia or Australia, it is the 02:00 UTC read the next day.

A `live_campaign_delivery` read asks the seller when you call, and its agent
runs a new GAM report each time, so it can include hours the last scheduled
read did not. It is still about four hours behind GAM.
[Campaign Pulse](https://docs.apostra.com/v3/campaign-pulse.md#when-figures-are-due) uses the declared
delay to work out when a report is due.

### Reach and frequency

Reach counts unique people, households or devices, so it cannot be added up the
way impressions can. Apostra reports the reach a seller sent and never works
one out.

* **Where it is available.** `live_campaign_delivery` returns `reach`,
  `frequency`, `reach_unit` and `reach_window` as the seller reported them, on
  the media buy `totals` and on each package in `by_package`. The same values are
  in the `delivery` payload and in `deliverySummary`. Stored `delivery` and
  `campaign_delivery` reads do not return reach yet, so a stored read has no
  reach number to compare.
* **Absent is not zero.** A seller that sent no reach leaves the fields out. Do
  not read a missing `reach` or `frequency` as `0`.
* **Read the unit and the window with the number.** `reach_unit` says what is
  counted: `individuals`, `households`, `devices`, `accounts`, `cookies` or
  `custom`. Compare reach only between values with the same unit.
  `reach_window` says what period the number covers: `cumulative` is everyone
  since the campaign started, `period` is one non-overlapping period such as a
  single day, and `rolling` is a trailing period ending at the report. `period`
  and `rolling` carry the length in `reach_window.period`. A value with no
  `reach_window` has an unspecified window.
* **Never add reach up.** Do not sum `reach` across days, packages or media
  buys. The same person appears in many of them, so a sum counts people more
  than once. A `cumulative` value replaces the earlier one, and a `rolling`
  value stands on its own. Do not average `frequency` across rows either.
* **A buy-level value and a package value are separate reports.** A seller may
  report reach for the whole media buy and for each package. The package values
  do not add up to the media buy's reach.

Seller delivery pages are live reads. A cursor continues the query but does not
freeze a historical snapshot. If your application needs a reproducible extract,
store the completed extract and its query metadata in your own system and
label when it was read.

## 4. Run a repeatable extraction job

For a daily dashboard or warehouse load, your worker can:

1. Load the account, report, requested dimensions, and last completed date
   window from its checkpoint.
2. Read each bounded window and all its pages into a staging destination.
3. Check warnings and coverage, then publish the completed window. Use a key
   containing its account, dimensions, date, and currency so a retry replaces
   the same data rather than appending duplicates.
4. Advance the checkpoint only after the destination has accepted the complete
   window.
5. Re-read a recent overlap window according to your source's correction and
   freshness needs. Retain when each extract was observed.

Delivery reaches reporting through supported seller webhooks, source polling,
and downstream aggregation. A successful API response is not a promise that a
seller has reported every event or that the result is real-time. Review the
[reporting data flow](https://docs.apostra.com/v2/guides/reporting-overview.md#how-delivery-data-flows) for
your sources. Buyer REST reporting is day-grain; an hourly job does not make
that endpoint an hourly delivery report.

## 5. Choose CSV export or scheduled cloud delivery

For a CSV aggregate, use the v2 REST reporting contract:

```bash theme={null}
curl --fail-with-body \
  'https://api.apostra.com/api/v2/buyer/reporting/metrics?view=timeseries&days=7&download=true' \
  -H "Authorization: Bearer $APOSTRA_API_KEY"
```

This example requests the credential's available reporting scope. Add the
documented advertiser or campaign filters when the job should cover a narrower
scope. The response returns `downloadUrl`, `expiresAt`, `fileName`, and
`rowCount`. Fetch the file in the consuming service; the signed URL is a bearer
credential and must not appear in logs or public dashboards. See
[CSV export](https://docs.apostra.com/v2/guides/reporting-overview.md#csv-export-downloadtrue).

> [!NOTE]
>
> This v2 buyer reporting endpoint is deprecated for external callers and switches
> off on 1 December 2026; existing integrations are grandfathered until then. New
> and migrating integrations move to the V3 reporting tools — see
> [Move a v2 buyer REST integration to V3](https://docs.apostra.com/v3/migrate-from-v2-rest.md).

For a recurring cloud feed, follow [Data Delivery](https://docs.apostra.com/v2/guides/data-delivery.md):
grant the documented storage permissions, register an advertiser-scoped
credential, wait for its asynchronous validation, then attach outputs for the
supported data types and cadence. Confirm that objects arrive in your bucket
or container before treating the feed as working. Data Delivery uses v2
configuration today; it is not a generic v3 export tool.

Data Delivery credentials and outputs are full-replace arrays. Read the current
configuration and preserve entries you intend to keep before updating it.

## Use notifications to resume work

For a human operator, use the existing
[notification channels and inbox](https://docs.apostra.com/v2/guides/notifications.md). Registered external
buyer agents have separate
[machine-notification administration](https://docs.apostra.com/v3/buyer-agents.md).
Use the documented event and delivery contract for that connection, and re-read
the referenced object before taking the next action.

Do not use authored notification subscriptions as a scheduler for this pipeline:
their schedule and condition triggers do not execute yet. A Slack incoming
webhook is a notification destination, not a machine-readable export of all
campaign changes. Your own scheduled poll or the supported Data Delivery
schedule is the working path for recurring extraction.

## Verify before connecting a dashboard

Test the consumer with empty data, an unavailable metric, mixed currencies, and
more than one page. Prove that rerunning a completed window does not duplicate
rows. Then read a known live campaign and compare its scope, period, and totals
with the same report in Apostra. Fixture tests verify your consumer; this live
comparison verifies access and the meaning of the selected report.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.