curl --request GET \
--url https://api.topsort.com/public/v1/offsite-ads/reporting/campaigns/{campaign-id} \
--header 'Authorization: Bearer <token>'{
"impressions": {
"total": 123,
"charged": 123,
"adSpent": 123,
"adSpentDecimal": "<string>"
},
"clicks": {
"total": 123,
"charged": 123,
"adSpent": 123,
"adSpentDecimal": "<string>"
},
"purchases": {
"amount": 123,
"count": 123,
"quantity": 123,
"countByProduct": {}
}
}Get campaign report.
curl --request GET \
--url https://api.topsort.com/public/v1/offsite-ads/reporting/campaigns/{campaign-id} \
--header 'Authorization: Bearer <token>'{
"impressions": {
"total": 123,
"charged": 123,
"adSpent": 123,
"adSpentDecimal": "<string>"
},
"clicks": {
"total": 123,
"charged": 123,
"adSpent": 123,
"adSpentDecimal": "<string>"
},
"purchases": {
"amount": 123,
"count": 123,
"quantity": 123,
"countByProduct": {}
}
}A valid API key generated in Topsort's UI.
The ID of the campaign to get the report for.
The ID of the vendor to get the campaign report for.
The start date for which reports will be generated.
The end date for which reports will be generated.
Successful Response
Clicks, impressions and purchases attributed to this report item so far.
How many impressions are attributed to this report item.
Show child attributes
Total number of events.
Number of charged events.
Ad spent over a period of time, in minor units of currency according to ISO 4217.
Ad spent over a period of time.
How many clicks are attributed to this report item.
Show child attributes
Total number of events.
Number of charged events.
Ad spent over a period of time, in minor units of currency according to ISO 4217.
Ad spent over a period of time.
How many purchases are attributed to this report item.
Show child attributes
Amount of money made by purchases over a period of time, in minor units of currency according to ISO 4217.
Amount of purchase events.
Amount of items purchased.
Was this page helpful?