GET
/
v2
/
offsite-ads
/
reporting
/
campaigns
/
{campaign_id}
/
daily
curl --request GET \
  --url https://api.topsort.com/v2/offsite-ads/reporting/campaigns/{campaign_id}/daily \
  --header 'Authorization: Bearer <token>'
{
  "hasMore": true,
  "nextPage": "<string>",
  "reports": [
    {
      "clicks": {
        "adSpent": 123,
        "charged": 123,
        "total": 123
      },
      "date": "2023-12-25",
      "impressions": {
        "adSpent": 123,
        "charged": 123,
        "total": 123
      },
      "purchases": {
        "amount": 123,
        "count": 123,
        "countByProduct": {},
        "quantity": 123
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaign_id
string
required

The unique identifier of the campaign.

Query Parameters

start_date
string
required

Start date for the report.

end_date
string
required

End date for the report.

next_page
string

Pagination cursor as provided in an earlier response. If provided will fetch the next page of results.

limit
integer
default:50

The maximum number of items to return per page.

Required range: 1 <= x <= 100

Response

200
application/json
Successful Response

Response for daily aggregation reports

hasMore
boolean
required

Flag that indicates whether more results are available. true indicates there is a next page of results. false indicates this response contains the last page of results.

reports
object[]
required

A list with report data aggregated by day.

Clicks, impressions and purchases attributed to this report item so far, for a particular date

nextPage
string

Pagination cursor. Provide this value as a next_page query parameter in a new request to retrieve the next page of results.

Minimum length: 1