Ads · Ad Campaign Results

Get your results totals

Fetches your results totals.

GEThttps://api.pozy.ai/v1/ads/campaign-results/totals
Facebook and Instagram, Google Workspace, TikTok, LinkedIn, Pinterest and X and 1 moregetCampaignResultsTotals

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
fromDaterequiredstring (date)
toDaterequiredstring (date)
adAccountIdsstring

Example

curl -X GET "https://api.pozy.ai/v1/ads/campaign-results/totals?fromDate=2026-10-01&toDate=2026-10-01" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • fromDatestring (date)required
  • toDatestring (date)required
  • totalsmap of numberrequired
200 response
{
  "fromDate": "2026-10-01",
  "toDate": "2026-10-01",
  "totals": {
    "key": 12.5
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Ad Campaign Results