curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/ads?adId=c3a1e2d4-0000-4000-8000-0000000000ad"
{
"status": "success",
"ads": [
{
"postId": "DE6gpw8kxlonHy6eb7L1",
"ad": {
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"campaignId": "d4c3b2a1-0000-4000-8000-0000000000ca",
"adSquadId": "e5f6a7b8-0000-4000-8000-0000000000sq",
"platform": "snapchat",
"adStatus": "ACTIVE",
"creativeId": "a1b2c3d4-0000-4000-8000-0000000000cr",
"created": "2026-11-20T15:04:05.123Z",
"review": { "status": "APPROVED", "reasons": [] },
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a"
}
}
],
"count": 1,
"lastUpdated": "2026-11-21T09:30:00.000Z",
"nextUpdate": "2026-11-21T09:41:00.000Z"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "At least one of campaignId, accountId, adId, postId, or snapchatSnapId is required."
}
{
"action": "ads",
"status": "error",
"code": 400,
"message": "The ad is not found or not authorized."
}
Snapchat Ads
已推广广告
按广告、帖子、Snap、广告系列或广告账户获取通过 Ayrshare 推广的 Snapchat 广告及其状态和审核。
GET
/
ads
/
snapchat
/
ads
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/ads?adId=c3a1e2d4-0000-4000-8000-0000000000ad"
{
"status": "success",
"ads": [
{
"postId": "DE6gpw8kxlonHy6eb7L1",
"ad": {
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"campaignId": "d4c3b2a1-0000-4000-8000-0000000000ca",
"adSquadId": "e5f6a7b8-0000-4000-8000-0000000000sq",
"platform": "snapchat",
"adStatus": "ACTIVE",
"creativeId": "a1b2c3d4-0000-4000-8000-0000000000cr",
"created": "2026-11-20T15:04:05.123Z",
"review": { "status": "APPROVED", "reasons": [] },
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a"
}
}
],
"count": 1,
"lastUpdated": "2026-11-21T09:30:00.000Z",
"nextUpdate": "2026-11-21T09:41:00.000Z"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "At least one of campaignId, accountId, adId, postId, or snapchatSnapId is required."
}
{
"action": "ads",
"status": "error",
"code": 400,
"message": "The ad is not found or not authorized."
}
获取你通过推广帖子创建的 Snapchat 广告,以及每个广告的状态和 Snapchat 的审核结果。
- 发送
postId、socialPostId、adId、accountId或campaignId之一。如果发送多个,按此顺序使用第一个。 - 仅列出通过 Ayrshare 为此资料推广的广告。在 Snapchat Ads Manager 中创建的广告不包括在内。
review是 Snapchat 对广告的审核:Snapchat 报告的status,例如审核期间为PENDING,通过后为APPROVED;以及包含 Snapchat 说明的reasons。当 Snapchat 未报告审核时,review为null。- 每个广告都列出其
adSquadId:在 Snapchat 上,预算和定位设置在 ad squad 上。 - 此端点不返回花费或效果数据。实时数据请使用洞察,每日花费请使用历史记录。
- 要暂停或恢复广告,请使用更新广告。
请求头参数
查询参数
你推广的 Ayrshare 帖子 ID。返回从该帖子推广的广告。
Snapchat 广告 ID,即推广帖子返回的
id。仅返回此状态的广告:
active 或 paused。省略则返回所有状态。使用 adId、postId 或 socialPostId 时,即使状态不匹配也可能返回广告,因此请检查其 adStatus。curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/ads?adId=c3a1e2d4-0000-4000-8000-0000000000ad"
{
"status": "success",
"ads": [
{
"postId": "DE6gpw8kxlonHy6eb7L1",
"ad": {
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"campaignId": "d4c3b2a1-0000-4000-8000-0000000000ca",
"adSquadId": "e5f6a7b8-0000-4000-8000-0000000000sq",
"platform": "snapchat",
"adStatus": "ACTIVE",
"creativeId": "a1b2c3d4-0000-4000-8000-0000000000cr",
"created": "2026-11-20T15:04:05.123Z",
"review": { "status": "APPROVED", "reasons": [] },
"snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
"socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a"
}
}
],
"count": 1,
"lastUpdated": "2026-11-21T09:30:00.000Z",
"nextUpdate": "2026-11-21T09:41:00.000Z"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "At least one of campaignId, accountId, adId, postId, or snapchatSnapId is required."
}
{
"action": "ads",
"status": "error",
"code": 400,
"message": "The ad is not found or not authorized."
}