GET
/
v2
/
offsite-ads
/
reporting
/
campaigns
/
{campaign_id}
curl --request GET \
  --url https://api.topsort.com/v2/offsite-ads/reporting/campaigns/{campaign_id} \
  --header 'Authorization: Bearer <token>'
{
  "clicks": {
    "adSpent": 123,
    "charged": 123,
    "total": 123
  },
  "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.

Response

200
application/json
Successful Response

Clicks, impressions and purchases attributed to this report item so far.

clicks
object
required

How many clicks are attributed to this report item.

impressions
object
required

How many impressions are attributed to this report item.

purchases
object
required

How many purchases are attributed to this report item.