List your Pinterest ads — promoted Pins, destinations
pinterest-ads.adsList the ads in your Pinterest ad account with their promoted Pins and destinations
- Price
- freeZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.adsPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameter
a Pinterest ad is a promoted Pin: the creative itself is `pin_id`, which you resolve through GET /pins/{pin_id} for the image and description. destination_url and creative_type (REGULAR | VIDEO | CAROUSEL | IDEA | COLLECTION) are on the ad
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
ad_account_id | Zeichenkette | Erforderlich | 549755885175 | |
| Abfrageparameter | ||||
ad_ids | Array | Optional | ||
bookmark | Zeichenkette | Optional | ||
page_size | Ganzzahl | Optional | 25 | |
ad_group_ids | Array | Optional | ||
campaign_ids | Array | Optional | ||
entity_statuses | Array | Optional | ["ACTIVE"] | |
- Pfadparameter
ad_account_idZeichenketteErforderlichBeispiel:
549755885175- Abfrageparameter
ad_idsArrayOptionalbookmarkZeichenketteOptionalpage_sizeGanzzahlOptionalBeispiel:
25ad_group_idsArrayOptionalcampaign_idsArrayOptionalentity_statusesArrayOptionalBeispiel:
["ACTIVE"]
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/pinterest-ads.ads' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pinterest-ads.ads",
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.ads", {
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.