List your Snapchat ad campaigns — objective, budget
snapchat-ads.campaignsList the campaigns in your Snapchat ad account with status, objective and budget
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- —未確認
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.campaignsBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
daily_budget_micro and lifetime_spend_cap_micro are in micro-currency. `status` is what you set (ACTIVE | PAUSED); the delivery reality shows up in the separate ad-squad level and in stats
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ad_account_id | 文字列 | 必須 | 8adc3db7-8148-4fbf-999c-8d2266369d74 | |
| クエリパラメータ | ||||
limit | 整数 | 任意 | 50 | |
cursor | 文字列 | 任意 | ||
read_deleted_entities | 真偽値 | 任意 | false by default — deleted campaigns are hidden unless asked for | |
- パスパラメータ
ad_account_id文字列必須例:
8adc3db7-8148-4fbf-999c-8d2266369d74- クエリパラメータ
limit整数任意例:
50cursor文字列任意read_deleted_entities真偽値任意false by default — deleted campaigns are hidden unless asked for
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.campaigns' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.campaigns",
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.campaigns", {
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 です。サービス料を含みます。