Skip to main content
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"
}

Documentation Index

Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

Header Parameters

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