Documented API allows advertising agencies to obtain statistics about their advertising campaigns.
To obtain an API access token, please follow the steps described in Authorization Code flow docs: https://developer.allegro.pl/tutorials/authentication-and-authorization-m09BlVyo7iY#authorization-code-flow
Security Scheme Type | OAuth2 |
---|---|
authorizationCode OAuth Flow | Authorization URL: https://allegro.pl/auth/oauth/authorize Token URL: https://allegro.pl/auth/oauth/token Scopes: |
id required | string Agency client ID. |
types | Array of strings unique Items Enum: "SPONSORED_OFFER" "GRAPHIC_AD" Campaign types with items. |
statistics.gte required | string <date> The lower bound of date time range from which statistics will be collected. Date cannot be older than 2 years. Format (ISO 8601) - yyyy-MM-dd. |
statistics.lte required | string <date> The upper bound of date time range from which statistics will be collected. Date cannot be younger than yesterday (ISO 8601) - yyyy-MM-dd. |
{- "sponsoredOffers": [
- {
- "campaign": {
- "id": "ZTBlYzY4OTEtZmViYS00NThiLWExZGYtMjE5MGRjN2I1ODhjAA",
- "name": "Christmas campaign"
}, - "adGroup": {
- "id": "NjU0MzM4MWMtNGU2OS00MTNhLWFhOTItMjAxYTQ4NzY1MzQ2AA",
- "name": "Christmas ad group"
}, - "ad": {
- "id": "vLA0tco-hEFR9cq4tKW_ig",
- "name": "iPhone 13",
- "offerId": "10000000045"
}, - "dayData": [
- {
- "day": "2022-02-15",
- "data": {
- "interest": 0,
- "clicks": 0,
- "totalCost": "0",
- "views": 0,
- "ctr": "0",
- "totalAttributionCount": 0,
- "totalAttributionValue": "0",
- "effectiveCpc": "0",
- "rateOfReturn": "0"
}
}
]
}
], - "graphicAds": [
- {
- "campaign": {
- "id": "ZTBlYzY4OTEtZmViYS00NThiLWExZGYtMjE5MGRjN2I1ODhjAA",
- "name": "Christmas campaign"
}, - "adGroup": {
- "id": "NjU0MzM4MWMtNGU2OS00MTNhLWFhOTItMjAxYTQ4NzY1MzQ2AA",
- "name": "Christmas ad group"
}, - "ad": {
- "id": "vLA0tco-hEFR9cq4tKW_ig",
- "name": "iPhone 13"
}, - "dayData": [
- {
- "day": "2022-02-15",
- "data": {
- "interest": 0,
- "clicks": 1,
- "totalCost": "72",
- "views": 1000,
- "ctr": "0",
- "totalAttributionCount": 0,
- "totalAttributionValue": "0",
- "effectiveCpm": "0",
- "rateOfReturn": "0",
- "uniqueReach": 5,
- "attributedToCoreValue": "1023.05"
}
}
]
}
]
}