Per-campaign Pinterest ad performance — spend, conversions
pinterest-ads.campaign.analyticsGet spend and performance per campaign in your Pinterest ad account
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据近 30 天 · 0 次
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.campaign.analytics预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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 替换为你在控制台创建的密钥。
预览
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。