> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Adset Schedule

> Updates the start_time and/or end_time (schedule) of a Meta Ads ad set

Updates the start\_time and/or end\_time (schedule) of a Meta Ads ad set.

|                       |                                  |
| --------------------- | -------------------------------- |
| **App**               | Meta Ads                         |
| **Operation ID**      | `meta_ads_update_adset_schedule` |
| **Type**              | Action                           |
| **Connection**        | `meta_ads` (required)            |
| **Credits per run**   | 1                                |
| **Agent / MCP tool**  | Yes                              |
| **Requires approval** | Yes (write operation)            |

## Inputs

| Field            | Type                 | Required | Default | Description                                                                                                                                                                                               |
| ---------------- | -------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`        | DynamicAccount       | Yes      | -       | Select Meta Ads account, ask the user for it if not provided                                                                                                                                              |
| `adset_id`       | string or SelectItem | Yes      | -       | The ad set to update the schedule for                                                                                                                                                                     |
| `start_time`     | integer              | No       | -       | New start time as Unix timestamp in seconds (UTC). Leave empty to keep current start time. Only editable while the ad set has not started delivering yet.                                                 |
| `end_time`       | integer              | No       | -       | New end time as Unix timestamp in seconds (UTC). Leave empty to keep current end time. Required for ad sets using a lifetime budget. Must be after start\_time.                                           |
| `clear_end_time` | boolean              | No       | `False` | Set to true to remove the end time entirely (run the ad set with no end date). Only allowed for ad sets on a daily budget; lifetime-budget ad sets require an end\_time. When true, end\_time is ignored. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `str`

Returns success message confirming ad set schedule update.
