One Snapchat campaign's performance — spend, swipes
snapchat-ads.campaign.statsGet spend, impressions and swipes for one Snapchat campaign
- 가격
- free정가 기준
- 성공률
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- 지연 시간 p50
- ——
- 마지막 검증
- —아직 검증되지 않음
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.campaign.statsBeta- 플랫폼 할당량 사용
- 동기 응답
- 공개 데이터 읽기
파라미터
identical shape to the account-level report, scoped to one campaign; /adsquads/{id}/stats and /ads/{id}/stats are the same again further down. LIFETIME granularity ignores start_time/end_time and returns the campaign's all-time totals
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 경로 파라미터 | ||||
campaign_id | 문자열 | 필수 | UUID from the campaigns list | 92e1c28a-a331-45b4-8c26-fd3e0eea8c39 |
| 쿼리 파라미터 | ||||
fields | 문자열 | 선택 | impressions,swipes,spend,conversion_purchases,attachment_total_view_time_millis | |
end_time | 문자열 | 선택 | 2026-07-28T00:00:00-07:00 | |
breakdown | 문자열 | 선택 | adsquad | ad — one row per child of this campaign | adsquad |
start_time | 문자열 | 선택 | ISO 8601 aligned to ad-account-timezone midnight | 2026-06-28T00:00:00-07:00 |
granularity | 문자열 | 필수 | TOTAL | DAY | HOUR | LIFETIME | TOTAL |
swipe_up_attribution_window | 문자열 | 선택 | 7_DAY | |
- 경로 파라미터
campaign_id문자열필수UUID from the campaigns list
예시:
92e1c28a-a331-45b4-8c26-fd3e0eea8c39- 쿼리 파라미터
fields문자열선택예시:
impressions,swipes,spend,conversion_purchases,attachment_total_view_time_millisend_time문자열선택예시:
2026-07-28T00:00:00-07:00breakdown문자열선택adsquad | ad — one row per child of this campaign
예시:
adsquadstart_time문자열선택ISO 8601 aligned to ad-account-timezone midnight
예시:
2026-06-28T00:00:00-07:00granularity문자열필수TOTAL | DAY | HOUR | LIFETIME
예시:
TOTALswipe_up_attribution_window문자열선택예시:
7_DAY
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 Beta이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 free이며 서비스 수수료가 포함되어 있습니다.