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
更新廣告
暫停、恢復或刪除透過 Ayrshare 推廣的 Snapchat 廣告,包括廣告活動何時一併恢復,以及變更失敗後如何檢查廣告。
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。請提供廣告 ID 聯絡支援團隊。 - 如果
active失敗且 Snapchat 無法確認廣告已再次停止,錯誤中會帶有warning:廣告可能正在投放並產生花費。請在 Snapchat Ads Manager 中檢查,或再次傳送paused。 - 失敗的
paused或deleted不帶warning,但廣告可能仍在投放。請在已推廣廣告或 Snapchat Ads Manager 中檢查,並再次傳送變更。 - 若要查看廣告的目前狀態,請使用已推廣廣告。
請求頭參數
請求體參數
Snapchat 廣告 ID,即推廣貼文回傳的
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."
}