actions_capabilities
List configured direct Meta actions, including partial updates. Access:mcp:read. Workspace and target permissions also apply.
Arguments: none.
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {},
"type": "object"
}
media_uploads_create
Upload media to the current workspace library without requiring an account. Open a picker for up to ten files (64 MiB total by default), or supply metadata for one signed PUT grant. A successful PUT confirms library persistence. Use media_asset_id with Launcher library tools; media_id retains compatibility with creatives_create. Uploads do not contact Meta. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Open the media picker or create one bounded signed upload grant.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"filename": {
"anyOf": [
{
"maxLength": 255,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"mime_type": {
"anyOf": [
{
"enum": [
"image/jpeg",
"image/png",
"image/webp",
"video/mp4",
"video/quicktime"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"byte_size": {
"anyOf": [
{
"maximum": 1073741824,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"checksum_sha256": {
"anyOf": [
{
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"request_id"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
media_uploads_complete
Upload up to ten files into the current workspace media library. The total interactive limit is 64 MiB by default, shared across all files. Use returned media_asset_id with Launcher library tools. The legacy media_id remains compatible with creatives_create. Retry the same request_id and files to retain exact per-file receipts, including after a partial batch failure. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
files | array | Required |
media_id | uuid or null | null |
request_id | uuid or null | null |
ad_account_id | uuid or null | null |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"files": {
"items": {
"additionalProperties": false,
"description": "One Prefab-selected file sent directly to the upload completion tool.",
"properties": {
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"size": {
"maximum": 1073741824,
"minimum": 1,
"type": "integer"
},
"type": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"data": {
"maxLength": 357914456,
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"size",
"type",
"data"
],
"type": "object"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"media_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"type": [
"string",
"null"
]
},
"request_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"type": [
"string",
"null"
]
},
"ad_account_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"type": [
"string",
"null"
]
}
},
"required": [
"files"
],
"type": "object"
}
creatives_create
Create a Meta creative from one completed signed media upload. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Upload completed media to Meta and create one ad creative.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"media_id": {
"format": "uuid",
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"object_story_spec": {
"additionalProperties": true,
"type": "object"
},
"url_tags": {
"anyOf": [
{
"maxLength": 2000,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"media_id",
"name",
"object_story_spec"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
campaigns_create
Validate by default or explicitly create one paused Meta campaign. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Create or validate one paused Meta campaign.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"objective": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"status": {
"const": "PAUSED",
"default": "PAUSED",
"type": "string"
},
"special_ad_categories": {
"items": {
"type": "string"
},
"maxItems": 10,
"type": "array"
},
"special_ad_category_country": {
"anyOf": [
{
"items": {
"type": "string"
},
"maxItems": 50,
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"daily_budget": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Daily budget in the ad account currency's minor units (for USD, 10000 means $100.00)."
},
"is_adset_budget_sharing_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null
},
"lifetime_budget": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Lifetime budget in the ad account currency's minor units (for USD, 10000 means $100.00)."
},
"bid_strategy": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"buying_type": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"promoted_object": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"start_time": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"stop_time": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"name",
"objective"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
adsets_create
Validate by default or explicitly create one paused Meta ad set. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Create or validate one paused Meta ad set under an existing campaign.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"campaign_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"optimization_goal": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"billing_event": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"targeting": {
"additionalProperties": true,
"type": "object"
},
"status": {
"const": "PAUSED",
"default": "PAUSED",
"type": "string"
},
"daily_budget": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Daily budget in the ad account currency's minor units (for USD, 2100 means $21.00)."
},
"lifetime_budget": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Lifetime budget in the ad account currency's minor units (for USD, 2100 means $21.00)."
},
"bid_amount": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Bid amount in the ad account currency's minor units."
},
"bid_strategy": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"promoted_object": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"destination_type": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"attribution_spec": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"maxItems": 20,
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"start_time": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"end_time": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"dsa_beneficiary": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"dsa_payor": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"campaign_id",
"name",
"optimization_goal",
"billing_event",
"targeting"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
ads_create
Validate by default or explicitly create one paused Meta ad. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Create or validate one paused Meta ad using an existing creative.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"adset_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"creative_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"status": {
"const": "PAUSED",
"default": "PAUSED",
"type": "string"
},
"conversion_domain": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"tracking_specs": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"maxItems": 50,
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"adset_id",
"name",
"creative_id"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
actions_execute
Execute set_status for one campaign, ad set, or ad. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Set one existing campaign, ad set, or ad ACTIVE or PAUSED.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"target_type": {
"enum": [
"campaign",
"adset",
"ad"
],
"type": "string"
},
"target_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"status": {
"enum": [
"ACTIVE",
"PAUSED"
],
"type": "string"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"target_type",
"target_id",
"status"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
campaigns_duplicate
Preview or copy a campaign with its children in the same account, paused. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Copy one source within its authorized account.",
"properties": {
"destination_campaign_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"destination_adset_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"default": "PAUSED",
"enum": [
"PAUSED",
"ACTIVE"
],
"type": "string"
},
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"source_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"source_id"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
adsets_duplicate
Copy an ad set and its ads PAUSED into an existing campaign. The destination campaign must belong to the same authorized account. Omit it to retain the original campaign. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Copy an ad set and its children paused within the authorized account.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"source_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"destination_campaign_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"const": "PAUSED",
"default": "PAUSED",
"type": "string"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"source_id"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
ads_duplicate
Preview or copy an ad into an existing ad set; defaults to PAUSED. Supply destination campaign and ad set IDs together to choose a destination within the source account. Set status=ACTIVE only for an intentional live copy. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Copy one source within its authorized account.",
"properties": {
"destination_campaign_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"destination_adset_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"default": "PAUSED",
"enum": [
"PAUSED",
"ACTIVE"
],
"type": "string"
},
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"source_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"source_id"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
actions_get
Read one permission-filtered action result by Activity ID. Access:mcp:read. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
activity_id | uuid | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"activity_id": {
"format": "uuid",
"type": "string"
}
},
"required": [
"activity_id"
],
"type": "object"
}
campaigns_update
Patch selected existing campaign fields. Budgets use integer account minor units; ownership/type cannot change. Dry run defaults true. Inspect result verification: simulation, confirmed, or reconciliation_required. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Patch one existing campaign; monetary values use account minor units.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"target_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"changes": {
"additionalProperties": false,
"description": "Campaign-level fields; zero spend_cap explicitly removes the cap.",
"properties": {
"name": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"enum": [
"ACTIVE",
"PAUSED"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"daily_budget": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"lifetime_budget": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"bid_strategy": {
"anyOf": [
{
"enum": [
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"COST_CAP",
"LOWEST_COST_WITH_MIN_ROAS"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"spend_cap": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"target_id",
"changes"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
adsets_update
Patch existing ad-set settings. Dates require UTC offsets; nested objects merge and selected lists replace. Budgets use integer minor units. Dry run defaults true. Inspect result verification: simulation, confirmed, or reconciliation_required. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Patch an existing ad set without changing parent budgets or status.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"target_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"changes": {
"additionalProperties": false,
"description": "Editable ad-set settings, validated against its current parent and state.",
"properties": {
"name": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"enum": [
"ACTIVE",
"PAUSED"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"daily_budget": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"lifetime_budget": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"bid_strategy": {
"anyOf": [
{
"enum": [
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"COST_CAP",
"LOWEST_COST_WITH_MIN_ROAS"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"start_time": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"end_time": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"targeting": {
"anyOf": [
{
"additionalProperties": false,
"description": "Partial targeting; nested objects merge and selected lists replace.",
"properties": {
"interests": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"behaviors": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"custom_audiences": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"age_min": {
"anyOf": [
{
"maximum": 65,
"minimum": 18,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"age_max": {
"anyOf": [
{
"maximum": 65,
"minimum": 18,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"genders": {
"anyOf": [
{
"items": {
"enum": [
1,
2
],
"type": "integer"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"locales": {
"anyOf": [
{
"items": {
"exclusiveMinimum": 0,
"type": "integer"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"geo_locations": {
"anyOf": [
{
"additionalProperties": false,
"description": "Selected location lists; provided lists replace their previous contents.",
"properties": {
"countries": {
"anyOf": [
{
"items": {
"pattern": "^[A-Z]{2}$",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"regions": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"cities": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"zips": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"location_types": {
"anyOf": [
{
"items": {
"enum": [
"home",
"recent",
"travel_in"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"excluded_geo_locations": {
"anyOf": [
{
"additionalProperties": false,
"description": "Selected location lists; provided lists replace their previous contents.",
"properties": {
"countries": {
"anyOf": [
{
"items": {
"pattern": "^[A-Z]{2}$",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"regions": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"cities": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"zips": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "A provider geographic location key.",
"properties": {
"key": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"radius": {
"anyOf": [
{
"maximum": 80,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"distance_unit": {
"anyOf": [
{
"enum": [
"mile",
"kilometer"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"key"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"location_types": {
"anyOf": [
{
"items": {
"enum": [
"home",
"recent",
"travel_in"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"excluded_custom_audiences": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"targeting_automation": {
"anyOf": [
{
"additionalProperties": false,
"description": "Explicit Advantage audience control.",
"properties": {
"advantage_audience": {
"enum": [
0,
1
],
"type": "integer"
}
},
"required": [
"advantage_audience"
],
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"flexible_spec": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "Supported detailed targeting selections.",
"properties": {
"interests": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"behaviors": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"custom_audiences": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "An existing provider audience or interest identity.",
"properties": {
"id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"publisher_platforms": {
"anyOf": [
{
"items": {
"enum": [
"facebook",
"instagram",
"audience_network",
"messenger",
"threads"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"facebook_positions": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"instagram_positions": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"audience_network_positions": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"messenger_positions": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"threads_positions": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"device_platforms": {
"anyOf": [
{
"items": {
"enum": [
"mobile",
"desktop"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"optimization_goal": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"destination_type": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"promoted_object": {
"anyOf": [
{
"additionalProperties": false,
"description": "Dataset/pixel and conversion event or destination resource selection.",
"properties": {
"pixel_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"custom_event_type": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"custom_conversion_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"application_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"object_store_url": {
"anyOf": [
{
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"page_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"product_set_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"attribution_spec": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "Explicit click or view attribution window.",
"properties": {
"event_type": {
"enum": [
"CLICK_THROUGH",
"VIEW_THROUGH"
],
"type": "string"
},
"window_days": {
"enum": [
1,
7
],
"type": "integer"
}
},
"required": [
"event_type",
"window_days"
],
"type": "object"
},
"maxItems": 2,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"billing_event": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"bid_amount": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"bid_constraints": {
"anyOf": [
{
"additionalProperties": false,
"description": "Meta minimum ROAS expressed in provider units (10000 equals 1.0).",
"properties": {
"roas_average_floor": {
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"roas_average_floor"
],
"type": "object"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"target_id",
"changes"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}
ads_update
Patch one existing ad. Content requires creative_policy=replace. Edits may trigger review; new content does not retain existing post engagement. Never creates a new ad. Dry run defaults true. Inspect result verification: simulation, confirmed, or reconciliation_required. Access:mcp:read and mcp:write. Workspace and target permissions also apply.
| Parameter | Type | Required / default |
|---|---|---|
payload | object | Required |
Full input schema
Full input schema
{
"additionalProperties": false,
"properties": {
"payload": {
"additionalProperties": false,
"description": "Patch an existing ad; replacement creative creation must be explicit.",
"properties": {
"request_id": {
"format": "uuid",
"type": "string"
},
"ad_account_id": {
"format": "uuid",
"type": "string"
},
"target_id": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"changes": {
"additionalProperties": false,
"description": "Existing ad edits, without implicit ad or creative creation.",
"properties": {
"name": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"enum": [
"ACTIVE",
"PAUSED"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"creative_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"content": {
"anyOf": [
{
"additionalProperties": false,
"description": "Content edits require an explicitly authorized replacement creative.",
"properties": {
"primary_text": {
"anyOf": [
{
"maxLength": 10000,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"headline": {
"anyOf": [
{
"maxLength": 1000,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"description": {
"anyOf": [
{
"maxLength": 1000,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"call_to_action": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"destination_url": {
"anyOf": [
{
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"url_tags": {
"anyOf": [
{
"maxLength": 4096,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"page_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"instagram_user_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"object_story_id": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
{
"type": "null"
}
],
"default": null
},
"creative_policy": {
"anyOf": [
{
"const": "replace",
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"tracking_specs": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"description": "Selected supported conversion tracking identities.",
"properties": {
"action_type": {
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
"fb_pixel": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"application": {
"anyOf": [
{
"items": {
"maxLength": 300,
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"action_type"
],
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"conversion_domain": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"type": "object"
},
"dry_run": {
"default": true,
"type": "boolean"
}
},
"required": [
"request_id",
"ad_account_id",
"target_id",
"changes"
],
"type": "object"
}
},
"required": [
"payload"
],
"type": "object"
}