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
Update Ad
Pause, resume or delete a Snapchat ad you boosted through Ayrshare, including when its campaign resumes too and how to check an ad after a failed change.
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."
}
Pause, resume or delete a Snapchat ad you created with Boost Post.
pausedstops the ad, and its spend.deleteddeletes the ad in Snapchat.activeresumes the ad. If the ad’s campaign is paused and holds only this ad, the campaign is resumed too.- An ad runs only while its ad squad and campaign are active. If the ad squad was paused in Snapchat, or the campaign is paused and holds other ads,
activereturnscode: 369. Resume them in Snapchat Ads Manager first. - Snapchat has no archived status, so
archivedreturnscode: 101. - An ad that Ayrshare has no record of can be paused or deleted, but not set to
active. That request returnscode: 400. Contact support with the ad ID. - If
activefails and Snapchat cannot confirm the ad is stopped again, the error carries awarning: the ad may be live and spending. Check it in Snapchat Ads Manager, or sendpausedagain. - A failed
pausedordeletedhas nowarning, but the ad may still be running. Check it in Boosted Ads or Snapchat Ads Manager, and send the change again. - To see an ad’s current status, use Boosted Ads.
Header Parameters
Body Parameters
The Snapchat ad ID, the
id that Boost Post returned.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."
}