List your Pinterest ad campaigns — objective, budget
pinterest-ads.campaignsList the campaigns in your Pinterest ad account with objective, status and budget
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.campaignsPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
budgets are in MICRO-CURRENCY: daily_spend_cap 5000000 is $5.00. objective_type is AWARENESS | CONSIDERATION | VIDEO_VIEW | WEB_CONVERSION | CATALOG_SALES | WEB_SESSIONS
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ad_account_id | 文字列 | 必須 | 549755885175 | |
| クエリパラメータ | ||||
order | 文字列 | 任意 | ASCENDING | DESCENDING by id | |
bookmark | 文字列 | 任意 | ||
page_size | 整数 | 任意 | max 250 | 25 |
campaign_ids | 配列 | 任意 | comma-separated ids; mutually exclusive with entity_statuses | |
entity_statuses | 配列 | 任意 | ACTIVE | PAUSED | ARCHIVED — defaults to ACTIVE and PAUSED, so archived campaigns are hidden unless asked for | ["ACTIVE"] |
- パスパラメータ
ad_account_id文字列必須例:
549755885175- クエリパラメータ
order文字列任意ASCENDING | DESCENDING by id
bookmark文字列任意page_size整数任意max 250
例:
25campaign_ids配列任意comma-separated ids; mutually exclusive with entity_statuses
entity_statuses配列任意ACTIVE | PAUSED | ARCHIVED — defaults to ACTIVE and PAUSED, so archived campaigns are hidden unless asked for
例:
["ACTIVE"]
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/pinterest-ads.campaigns' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pinterest-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/pinterest-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 はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。