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
Quảng cáo đã Boost
Lấy các quảng cáo Snapchat bạn đã boost qua Ayrshare theo quảng cáo, bài đăng, Snap, chiến dịch hoặc tài khoản quảng cáo, kèm trạng thái và kết quả xét duyệt.
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."
}
Lấy các quảng cáo Snapchat bạn đã tạo bằng Boost Bài đăng, kèm trạng thái của từng quảng cáo và kết quả xét duyệt của Snapchat.
- Gửi một trong
postId,socialPostId,adId,accountIdhoặccampaignId. Nếu gửi nhiều hơn một, tham số đầu tiên theo thứ tự đó được dùng. - Chỉ các quảng cáo được boost qua Ayrshare cho hồ sơ này được liệt kê. Quảng cáo tạo trong Snapchat Ads Manager bị loại ra.
reviewlà kết quả xét duyệt quảng cáo của Snapchat:statustheo báo cáo của Snapchat, ví dụPENDINGtrong khi Snapchat xét duyệt vàAPPROVEDkhi quảng cáo được duyệt, cùngreasonsvới giải thích của Snapchat.reviewlànullkhi Snapchat không báo cáo xét duyệt nào.- Mỗi quảng cáo có
adSquadId: trên Snapchat, ngân sách và nhắm mục tiêu nằm ở ad squad. - Endpoint này không trả về chi tiêu hay hiệu quả. Dùng Insights cho số liệu trực tiếp, hoặc Lịch sử cho chi tiêu hằng ngày.
- Để tạm dừng hoặc tiếp tục một quảng cáo, dùng Cập nhật Quảng cáo.
Tham số Header
Tham số truy vấn
ID bài đăng Ayrshare mà bạn đã boost. Trả về các quảng cáo được boost từ bài đăng đó.
ID của Snap bạn đã boost:
mediaId trong kết quả Snapchat của bài đăng. Trả về các quảng cáo được boost từ Snap đó. snapchatSnapId được chấp nhận như cùng một tham số.ID quảng cáo Snapchat, tức
id mà Boost Bài đăng trả về.Chỉ trả về quảng cáo có trạng thái này:
active hoặc paused. Bỏ qua để nhận mọi trạng thái. Với adId, postId hoặc socialPostId, một quảng cáo có thể được trả về ngay cả khi trạng thái không khớp, nên hãy kiểm tra adStatus của nó.Số quảng cáo trả về. Tối đa là 300; giá trị lớn hơn bị giới hạn ở 300. Khi bạn gửi
limit, phản hồi có thể chứa nhiều hơn số bạn gửi một quảng cáo.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."
}