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 से boost किए गए Snapchat ad को pause, resume या delete करें, campaign कब resume होता है और fail हुए बदलाव के बाद ad कैसे जाँचें, यह भी।
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."
}
Boost Post से बनाए गए Snapchat ad को pause, resume या delete करें।
pausedad और उसका खर्च रोकता है।deletedSnapchat में ad को delete करता है।activead को resume करता है। अगर ad का campaign paused है और उसमें केवल यही ad है, तो campaign भी resume हो जाता है।- Ad तभी चलता है जब उसका ad squad और campaign active हों। अगर ad squad को Snapchat में pause किया गया था, या campaign paused है और उसमें दूसरे ads हैं, तो
activecode: 369लौटाता है। पहले उन्हें Snapchat Ads Manager में resume करें। - Snapchat में कोई archived status नहीं है, इसलिए
archivedcode: 101लौटाता है। - जिस ad का Ayrshare के पास कोई रिकॉर्ड नहीं है, उसे pause या delete किया जा सकता है, लेकिन
activeपर सेट नहीं किया जा सकता। वह requestcode: 400लौटाता है। Ad ID के साथ support से संपर्क करें। - अगर
activefail होता है और Snapchat पुष्टि नहीं कर पाता कि ad फिर से रुक गया है, तो error मेंwarningहोता है: ad live हो सकता है और खर्च कर रहा हो सकता है। इसे Snapchat Ads Manager में जाँचें, या फिर सेpausedभेजें। - Fail हुए
pausedयाdeletedमेंwarningनहीं होता, लेकिन ad अभी भी चल रहा हो सकता है। इसे Boosted Ads या Snapchat Ads Manager में जाँचें, और बदलाव फिर से भेजें। - किसी ad का वर्तमान status देखने के लिए Boosted Ads का उपयोग करें।
हैडर पैरामीटर
बॉडी पैरामीटर
Snapchat ad ID, वह
id जो Boost Post ने लौटाया।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."
}