Per-campaign Pinterest ad performance — spend, conversions
pinterest-ads.campaign.analyticsGet spend and performance per campaign in your Pinterest ad account
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.campaign.analyticsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
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
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
ad_account_id | string | Required | 549755885175 | |
| Query parameters | ||||
columns | array | Required | ["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"] | |
end_date | string | Required | YYYY-MM-DD | 2026-07-28 |
start_date | string | Required | YYYY-MM-DD | 2026-06-28 |
granularity | string | Required | TOTAL | DAY | HOUR | WEEK | MONTH | TOTAL |
campaign_ids | array | Required | REQUIRED — comma-separated campaign ids, max 500. There is no all-campaigns form; list the campaigns first | ["626746651239"] |
click_window_days | integer | Optional | 30 | |
conversion_report_time | string | Optional | TIME_OF_AD_ACTION | |
- Path parameters
ad_account_idstringRequiredExample:
549755885175- Query parameters
columnsarrayRequiredExample:
["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"]end_datestringRequiredYYYY-MM-DD
Example:
2026-07-28start_datestringRequiredYYYY-MM-DD
Example:
2026-06-28granularitystringRequiredTOTAL | DAY | HOUR | WEEK | MONTH
Example:
TOTALcampaign_idsarrayRequiredREQUIRED — comma-separated campaign ids, max 500. There is no all-campaigns form; list the campaigns first
Example:
["626746651239"]click_window_daysintegerOptionalExample:
30conversion_report_timestringOptionalExample:
TIME_OF_AD_ACTION
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.