Get daily stats of an ad
Endpoint for retrieving daily stats of advertisement that belong to the current user.
Path parameters
-
adId
string Required Id of an advertisement. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the advertisement insert endpoint.
Query parameters
-
page
number(float) Minimum value is
1
. Default value is1
. -
dateFrom
string Lower date limit in YYYY-MM-DD format
Format should match the following pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}$
. -
dateTo
string Lower date limit in YYYY-MM-DD format
Format should match the following pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}$
. -
order
string Values are
asc
ordesc
. Default value isdesc
. -
fakeData
boolean Make testing possible in a non-production environment. Returns fake data in the response. Also pairs the fake data with already imported advertisements if possible.
curl \
-X GET http://apis.public-staging.reas.cz/advertising/v1.0/ads/63d9007e66fc41b2cd1057c6/stats/daily \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"success": true,
"data": [
{
"date": "string",
"stats": {
"listViews": 10,
"detailViews": 5
}
}
],
"paginationInfo": {
"page": 42.0,
"pages": 42.0
}
}