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
Boosted Ads
Ayrshare से boost किए गए Snapchat ads को ad, post, Snap, campaign या ad account के अनुसार पाएँ, हर ad के status और Snapchat review के साथ।
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."
}
Boost Post से बनाए गए Snapchat ads पाएँ, हर ad के status और Snapchat के review के साथ।
postId,socialPostId,adId,accountIdयाcampaignIdमें से एक भेजें। अगर एक से ज़्यादा भेजते हैं, तो इसी क्रम में पहला उपयोग होता है।- केवल इस profile के लिए Ayrshare से boost किए गए ads सूचीबद्ध होते हैं। Snapchat Ads Manager में बने ads शामिल नहीं होते।
reviewad का Snapchat review है: Snapchat जैसा बताता है वैसाstatus, उदाहरण के लिए review के दौरानPENDINGऔर पास होने परAPPROVED, और Snapchat के कारणों के साथreasons। जब Snapchat कोई review नहीं बताता, तबreviewnullहोता है।- हर ad अपना
adSquadIdदिखाता है: Snapchat पर budget और targeting ad squad पर होते हैं। - यह endpoint खर्च या प्रदर्शन नहीं लौटाता। लाइव आँकड़ों के लिए इनसाइट्स, या दैनिक खर्च के लिए इतिहास का उपयोग करें।
- किसी ad को pause या resume करने के लिए विज्ञापन अपडेट करें का उपयोग करें।
हैडर पैरामीटर
क्वेरी पैरामीटर
वह Ayrshare post ID जिसे आपने boost किया। उस post से boost किए गए ads लौटाता है।
आपके द्वारा boost किए गए Snap का ID: post के Snapchat result में
mediaId। उस Snap से boost किए गए ads लौटाता है। snapchatSnapId को उसी parameter के रूप में स्वीकार किया जाता है।Snapchat ad ID, वह
id जो Boost Post ने लौटाया।केवल इस status वाले ads लौटाएँ:
active या paused। हर status पाने के लिए इसे छोड़ दें। adId, postId या socialPostId के साथ, कोई ad तब भी लौट सकता है जब उसका status match न करे, इसलिए उसका adStatus जाँचें।कितने ads लौटाने हैं। अधिकतम 300 है; बड़े मान 300 तक सीमित किए जाते हैं। जब आप
limit भेजते हैं, तो response में भेजी गई संख्या से एक ad ज़्यादा हो सकता है।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."
}