PUT
/
ads
/
facebook
/
ads
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"
}
Available on Premium, Business, Enterprise plans.

Update the status of a boosted ad to make it active, paused, deleted, or archived.

Header Parameters

Authorization
string
required
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY
Profile-Key
string
Profile Key of a User Profile.

Format: Profile-Key: PROFILE_KEY

Body Parameters

adId
string
required

The boosted ad ID to update.

status
string
required

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