List your Pinterest ads — promoted Pins, destinations
pinterest-ads.adsList the ads in your Pinterest ad account with their promoted Pins and destinations
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.adsPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ad_account_id | 文字列 | 必須 | 549755885175 | |
| クエリパラメータ | ||||
ad_ids | 配列 | 任意 | ||
bookmark | 文字列 | 任意 | ||
page_size | 整数 | 任意 | 25 | |
ad_group_ids | 配列 | 任意 | ||
campaign_ids | 配列 | 任意 | ||
entity_statuses | 配列 | 任意 | ["ACTIVE"] | |
- パスパラメータ
ad_account_id文字列必須例:
549755885175- クエリパラメータ
ad_ids配列任意bookmark文字列任意page_size整数任意例:
25ad_group_ids配列任意campaign_ids配列任意entity_statuses配列任意例:
["ACTIVE"]
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。