Per-campaign Pinterest ad performance — spend, conversions
pinterest-ads.campaign.analyticsGet spend and performance per campaign in your Pinterest ad account
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありませんLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.campaign.analyticsPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
same column vocabulary as the account-level report, one row per campaign (per period when granularity is not TOTAL). /ad_groups/analytics and /ads/analytics are the identical shape one and two levels down
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ad_account_id | 文字列 | 必須 | 549755885175 | |
| クエリパラメータ | ||||
columns | 配列 | 必須 | ["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"] | |
end_date | 文字列 | 必須 | YYYY-MM-DD | 2026-07-28 |
start_date | 文字列 | 必須 | YYYY-MM-DD | 2026-06-28 |
granularity | 文字列 | 必須 | TOTAL | DAY | HOUR | WEEK | MONTH | TOTAL |
campaign_ids | 配列 | 必須 | REQUIRED — comma-separated campaign ids, max 500. There is no all-campaigns form; list the campaigns first | ["626746651239"] |
click_window_days | 整数 | 任意 | 30 | |
conversion_report_time | 文字列 | 任意 | TIME_OF_AD_ACTION | |
- パスパラメータ
ad_account_id文字列必須例:
549755885175- クエリパラメータ
columns配列必須例:
["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"]end_date文字列必須YYYY-MM-DD
例:
2026-07-28start_date文字列必須YYYY-MM-DD
例:
2026-06-28granularity文字列必須TOTAL | DAY | HOUR | WEEK | MONTH
例:
TOTALcampaign_ids配列必須REQUIRED — comma-separated campaign ids, max 500. There is no all-campaigns form; list the campaigns first
例:
["626746651239"]click_window_days整数任意例:
30conversion_report_time文字列任意例:
TIME_OF_AD_ACTION
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/pinterest-ads.campaign.analytics' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pinterest-ads.campaign.analytics",
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.campaign.analytics", {
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 です。サービス料を含みます。