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 です。サービス料を含みます。