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."
}