캠페인 통계
getCampaignStats
Anchor link to특정 기간 동안 특정 캠페인의 통계를 검색합니다.
POST https://api.pushwoosh.com/json/1.3/getCampaignStats
요청 본문 매개변수
Anchor link to| 이름 | 필수 여부 | 유형 | 설명 |
|---|---|---|---|
auth | 예 | string | Pushwoosh Control Panel 의 API access token. |
campaign | 예 | string | 고유 campaign code. |
datefrom | 예 | string | 보고 기간의 시작 (Y-m-d H:i:s 형식). |
dateto | 예 | string | 보고 기간의 종료 (Y-m-d H:i:s 형식). |
요청 예시
Anchor link to{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel "campaign": "XXXXX-XXXXX", // required. Campaign code "datefrom": "2024-05-01 00:00:00", // required. Start of reporting period "dateto": "2024-05-10 23:59:59" // required. End of reporting period }}응답 예시
Anchor link to{ "status_code": 200, "status_message": "OK", "response": { "request_id": "a3ef436445abfdef6255cc2f65ce7614" }}예약된 요청 결과 검색
Anchor link togetResults 응답 예시
{ "status_code": 200, "status_message": "OK", "response": { "formatter": "hourly", "rows": [{ "count": 0, "action": "open", "datetime": "2024-05-09 00:00:00", "platformid": 14 }, { "count": 0, "action": "send", "datetime": "2024-05-09 00:00:00", "platformid": 14 }, { "count": 0, "action": "send", "datetime": "2024-05-11 00:00:00", "platformid": 14 }],
// conversion (if goal tracking is allowed) "conversion": { "send": 10, "open": 5, "events": [{ "uid": 1, "event": "event name", "hits": 5, "conversion": "100%", "revenue": 15.34 }] } }}