> ## 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 Locations

> Updates included or excluded Meta Ads ad set locations

Updates included or excluded Meta Ads ad set locations. Each non-empty location field replaces only that location type; omitted or empty fields preserve existing values, including location types this operation does not expose.

| | |
| - | - |
| **App** | Meta Ads |
| **Operation ID** | `meta_ads_update_adset_locations` |
| **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 locations for |
| `action` | string or SelectableOption | Yes | - | Use INCLUDE to update included locations (geo\_locations) or EXCLUDE to update excluded locations (excluded\_geo\_locations). Each non-empty location field replaces only that type's list, so supply all entries you want to keep for that type. Omitted or empty fields preserve existing values, including location types not exposed by this operation. |
| `countries` | array of string or SelectItem | No | - | Select one or more countries, e.g. US, CA, GB. |
| `region_keys` | array of string (also accepts a comma-separated string) | No | - | Region keys, e.g 3847 for California. Use operation `meta_ads_search_targeting` to find region keys. Can be list of strings or comma-separated string. |
| `city_keys` | array of string (also accepts a comma-separated string) | No | - | City keys, e.g. 2420379 for Los Angeles. Use operation `meta_ads_search_targeting` to find city keys. |
| `zip_keys` | array of string (also accepts a comma-separated string) | No | - | Zip keys, e.g. US:10012. Use operation `meta_ads_search_targeting` to find zip keys. |
| `geo_market_keys` | array of string (also accepts a comma-separated string) | No | - | Geo market keys, e.g. DMA:501. Use operation `meta_ads_search_targeting` to find geo market keys. |
| `electoral_district_keys` | array of string (also accepts a comma-separated string) | No | - | Electoral district keys, e.g. US:CA14. Use operation `meta_ads_search_targeting` to find electoral district keys. |

### 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. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `str`

Returns success message confirming locations update.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.