Activate or pause an ad
ads_set_statusSet a campaign, ad set (TikTok ad group, LinkedIn campaign) or ad to ACTIVE or PAUSED. TikTok and LinkedIn need level. Activating a LinkedIn draft campaign group from ads_create_linkedin_campaign also activates its campaign and ad. ACTIVE starts spending real money on the ad account: never activate without the user's explicit confirmation of the budget and dates. Setting the status an object already has is a no-op; one object's status can change four times an hour, so do not toggle it on and off. Meta changes are paced and limited so the ad account does not look automated: on ads_change_limited, wait retryAfterSeconds before retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adAccountId": "<adAccountId>",
"objectId": "<objectId>",
"status": "<status>"
},
"name": "ads_set_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| status | Yes | ||
| objectId | Yes | ||
| platform | No | meta_ads, tiktok_ads or linkedin_ads. Needed only when the profile has more than one ad network and no accountId is given. | |
| accountId | No | The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection. | |
| profileId | No | A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree. | |
| adAccountId | Yes | ||
| campaignRecordId | No |