Available on Premium, Business, Enterprise plans.
Update the status of a boosted ad to make it active, paused, deleted, or archived.
API Key of the Primary Profile.
Format:
Authorization: Bearer API_KEY
Profile Key of a User Profile.
Format:
Profile-Key: PROFILE_KEY
Body Parameters
The boosted ad ID to update.
The status of the ad. Values: active
, paused
, deleted
, or archived
.
curl \
-H "Authorization: Bearer API_KEY" \
-X PUT https://api.ayrshare.com/api/ads/facebook/ads
-d '{"adId": 1234567890, "status": "active"}'
{
"status": "success",
"adId": "6691084804905",
"requestedStatus": "ACTIVE"
}