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
الإعلانات المُعزَّزة
احصل على إعلانات Snapchat التي عززتها عبر Ayrshare حسب الإعلان أو المنشور أو Snap أو الحملة أو الحساب الإعلاني، مع الحالة ومراجعة 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 للإعلان:statusكما يُبلغ عنه Snapchat، مثلPENDINGأثناء مراجعة Snapchat للإعلان وAPPROVEDبعد اجتيازه، وreasonsمع توضيحات Snapchat. يكونreviewمساويًا لـnullعندما لا يُبلغ Snapchat عن أي مراجعة.- يذكر كل إعلان
adSquadIdالخاص به: في Snapchat تكون الميزانية والاستهداف على مستوى ad squad. - لا تُعيد نقطة النهاية هذه الإنفاق أو الأداء. استخدم الرؤى للأرقام المباشرة، أو السجل للإنفاق اليومي.
- لإيقاف إعلان مؤقتًا أو استئنافه، استخدم تحديث إعلان.
معاملات الترويسة
معاملات الاستعلام
معرّف المنشور في Ayrshare الذي عززته. يُعيد الإعلانات المُعزَّزة من ذلك المنشور.
معرّف الـ Snap الذي عززته: قيمة
mediaId في نتيجة Snapchat للمنشور. يُعيد الإعلانات المُعزَّزة من ذلك الـ Snap. يُقبل snapchatSnapId كالمعامل نفسه.معرّف إعلان Snapchat، أي
id الذي أعاده تعزيز المنشور.أعِد فقط الإعلانات ذات هذه الحالة:
active أو paused. احذفه للحصول على كل الحالات. مع adId أو postId أو socialPostId، قد يُعاد إعلان حتى عندما لا تطابق حالته، لذا تحقق من adStatus الخاص به.عدد الإعلانات المراد إعادتها. الحد الأقصى 300؛ تُقيَّد القيم الأعلى عند 300. عندما ترسل
limit، قد تحتوي الاستجابة على إعلان واحد أكثر من العدد الذي أرسلته.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."
}