List your Snapchat ads — creatives and ad types
snapchat-ads.adsList the ads in your Snapchat ad account with their creatives and types
- 价格
- free按目录价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.adsBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
each ad carries a creative_id and a `type` (SNAP_AD | STORY | COLLECTION | DYNAMIC_SNAP_AD). The media itself is two hops away: GET /creatives/{id} gives the media id, GET /media/{id} the asset — the ad object holds no playable URL
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
ad_account_id | 字符串 | 必填 | 8adc3db7-8148-4fbf-999c-8d2266369d74 | |
| 查询参数 | ||||
limit | 整数 | 可选 | 50 | |
cursor | 字符串 | 可选 | ||
read_deleted_entities | 布尔 | 可选 | ||
- 路径参数
ad_account_id字符串必填示例:
8adc3db7-8148-4fbf-999c-8d2266369d74- 查询参数
limit整数可选示例:
50cursor字符串可选read_deleted_entities布尔可选
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.ads' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-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/snapchat-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());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。