Ad Campaign Results

Get your results totals

Changed on

Each metric you send summed over a date range across every campaign of the ad accounts your key can see, or of the ones you name. Each day counts its newest value only.

Formulas are not computed here, since they also read the platform's numbers: apply one to these totals and the account's spend for the same range, or read it per campaign from GET /v1/ads/tree?results=true.

get/v1/ads/campaign-results/totals

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/ads/campaign-results/totals
  • Auth
    HTTP bearer

Query parameters

fromDatestring date required
toDatestring date required

Inclusive. At most 400 days after fromDate.

adAccountIdsstring

Comma-separated platform ad account ids, at most 100. Omit for every ad account your key can see.

Response

The totals by metric key.

fromDatestring date required
toDatestring date required
totalsobject required

Example response

{
  "totals": {
    "qualified_leads": 140,
    "sales": 23,
    "revenue": 41200
  }
}

Changes