curl \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-X PUT https://api.ayrshare.com/api/ads/snapchat/ads \
-d '{"adId": "c3a1e2d4-0000-4000-8000-0000000000ad", "status": "paused"}'
{
"status": "success",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"requestedStatus": "PAUSED"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Status ARCHIVED is not supported on snapchat. Supported: ACTIVE, PAUSED, DELETED."
}
{
"action": "ads",
"status": "error",
"code": 369,
"message": "Unable to boost post. Please try again.",
"details": "Snapchat ad squad e5f6a7b8-0000-4000-8000-0000000000sq is PAUSED. Resume the ad squad in Snapchat to run this ad."
}
Snapchat Ads
تحديث إعلان
أوقف مؤقتًا أو استأنف أو احذف إعلان Snapchat عززته عبر Ayrshare، بما في ذلك متى تُستأنف حملته أيضًا وكيف تتحقق منه بعد تغيير فاشل.
PUT
/
ads
/
snapchat
/
ads
curl \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-X PUT https://api.ayrshare.com/api/ads/snapchat/ads \
-d '{"adId": "c3a1e2d4-0000-4000-8000-0000000000ad", "status": "paused"}'
{
"status": "success",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"requestedStatus": "PAUSED"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Status ARCHIVED is not supported on snapchat. Supported: ACTIVE, PAUSED, DELETED."
}
{
"action": "ads",
"status": "error",
"code": 369,
"message": "Unable to boost post. Please try again.",
"details": "Snapchat ad squad e5f6a7b8-0000-4000-8000-0000000000sq is PAUSED. Resume the ad squad in Snapchat to run this ad."
}
أوقف مؤقتًا أو استأنف أو احذف إعلان Snapchat أنشأته عبر تعزيز المنشور.
- توقف
pausedالإعلان وإنفاقه. تحذفdeletedالإعلان في Snapchat. - تستأنف
activeالإعلان. إذا كانت حملة الإعلان متوقفة مؤقتًا ولا تحتوي إلا على هذا الإعلان، تُستأنف الحملة أيضًا. - لا يعمل الإعلان إلا أثناء نشاط ad squad والحملة الخاصين به. إذا أُوقف ad squad مؤقتًا في Snapchat، أو كانت الحملة متوقفة مؤقتًا وتحتوي على إعلانات أخرى، تُعيد
activeالقيمةcode: 369. استأنفها أولًا في Snapchat Ads Manager. - لا يملك Snapchat حالة مؤرشفة، لذا تُعيد
archivedالقيمةcode: 101. - يمكن إيقاف إعلان ليس لدى Ayrshare سجل له مؤقتًا أو حذفه، لكن لا يمكن ضبطه على
active. يُعيد هذا الطلبcode: 400. تواصل مع الدعم مع ذكر معرّف الإعلان. - إذا فشلت
activeولم يتمكن Snapchat من تأكيد توقف الإعلان مجددًا، يحمل الخطأwarning: قد يكون الإعلان نشطًا وينفق. تحقق منه في Snapchat Ads Manager، أو أرسلpausedمرة أخرى. - لا يحمل
pausedأوdeletedالفاشل أيwarning، لكن قد يظل الإعلان يعمل. تحقق منه في الإعلانات المُعزَّزة أو Snapchat Ads Manager، وأرسل التغيير مرة أخرى. - لمعرفة الحالة الحالية للإعلان، استخدم الإعلانات المُعزَّزة.
معاملات الترويسة
معاملات الجسم
معرّف إعلان Snapchat، أي
id الذي أعاده تعزيز المنشور.curl \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-X PUT https://api.ayrshare.com/api/ads/snapchat/ads \
-d '{"adId": "c3a1e2d4-0000-4000-8000-0000000000ad", "status": "paused"}'
{
"status": "success",
"adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
"requestedStatus": "PAUSED"
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Status ARCHIVED is not supported on snapchat. Supported: ACTIVE, PAUSED, DELETED."
}
{
"action": "ads",
"status": "error",
"code": 369,
"message": "Unable to boost post. Please try again.",
"details": "Snapchat ad squad e5f6a7b8-0000-4000-8000-0000000000sq is PAUSED. Resume the ad squad in Snapchat to run this ad."
}