List your Pinterest ad groups — budget, bid, targeting
pinterest-ads.adgroupsList the ad groups in your Pinterest ad account with budget, bid and targeting
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.adgroupsPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
targeting_spec (interests, keywords, geo, devices, audiences) lives on the ad group, as do bid_in_micro_currency and the daily/lifetime budget when the campaign does not own it
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
ad_account_id | string | Required | 549755885175 | |
| Query parameters | ||||
bookmark | string | Optional | ||
page_size | integer | Optional | 25 | |
ad_group_ids | array | Optional | ||
campaign_ids | array | Optional | comma-separated, to scope to one campaign | |
entity_statuses | array | Optional | ["ACTIVE"] | |
- Path parameters
ad_account_idstringRequiredExample:
549755885175- Query parameters
bookmarkstringOptionalpage_sizeintegerOptionalExample:
25ad_group_idsarrayOptionalcampaign_idsarrayOptionalcomma-separated, to scope to one campaign
entity_statusesarrayOptionalExample:
["ACTIVE"]
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/pinterest-ads.adgroups' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pinterest-ads.adgroups",
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.adgroups", {
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.