Bloss Docs

Campaign daily breakdown

Developers
GET
/campaign/daily

Per-day videos posted, views generated, and spend (Base + CPM) across the campaign's cycles. Defaults to the full span the cycles cover, in your brand's timezone.

Summing the days reproduces GET /campaign/summary for the same cycles: videos counts each video once on the day it was posted, views is each video's own day-over-day gain, and spend is the day-over-day increase in that day's cycle pay. spend is null on a day no requested cycle covers, and can be negative on a day a pair's pay was revised down.

When tagIds is supplied, videos/views are scoped to that tag set and spend is null for every day — per-day spend cannot be attributed to a tag (pay is a cycle-level total on the pair). Use GET /campaign/tags for total spend by tag.

groupIds scopes videos/views by the video's creator and also nulls spend, for a different reason: the daily spend series is differenced out of a pre-aggregated brand-wide table with no creator dimension. For a group's total spend, use GET /campaign/summary with the same filter.

Authorization

headerAuthorizationBearer <token>

Provide your API key as Authorization: Bearer <key>.

Query Parameters

cycleIds*string

Comma-separated cycle ids to include in the campaign.

from?string

Clamp the start of the window (YYYY-MM-DD).

Formatdate
to?string

Clamp the end of the window (YYYY-MM-DD).

Formatdate
tagIds?string

Comma-separated tag ids. Scopes each day's videos/views to videos carrying at least one of these tags; spend becomes null. Get tag ids from GET /campaign/tags.

groupIds?string

Comma-separated creator-group ids. Scopes each day's videos/views to videos whose creator is in at least one of these groups; spend becomes null. Get group ids from GET /groups; __ungrouped__ selects creators in no group.

Response Body

Daily breakdown.

application/json
  1. response
from?string
Formatdate
to?string
Formatdate
days?array<>
curl -X GET 'https://example.com/api/v0/campaign/daily?cycleIds=string&tagIds=tag_abc%2Ctag_def&groupIds=grp_abc%2Cgrp_def'
{  "from": "2019-08-24",  "to": "2019-08-24",  "days": [    {      "date": "2019-08-24",      "videos": 0,      "views": 0,      "spend": 0    }  ]}

Was this page helpful?