meta-ads
v1.6.1MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_campaigns
List campaigns in the ad account. Supports filtering by status and objective. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
before | string | Pagination cursor for previous page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
objective | string | Filter by objective: OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_TRAFFIC, OUTCOME_APP_PROMOTION |
status | string | Filter by status: ACTIVE, PAUSED, DELETED, ARCHIVED |
get_campaign
Get details of a specific campaign by ID.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID |
fields | string | Comma-separated fields to return |
create_campaign
Create a new ad campaign. Defaults to PAUSED status. Requires name and objective. Budget can be set at campaign or ad set level.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign name |
objective * | string | Campaign objective |
account_id | string | Ad account ID to create the campaign in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
bid_strategy | string | Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS. Meta defaults new campaigns to LOWEST_COST_WITH_BID_CAP, which requires a bid_amount on every ad s… |
daily_budget | string | Daily budget in account currency cents (e.g. '5000' = $50.00) |
is_adset_budget_sharing_enabled | boolean | Whether ad sets under this campaign can share budget with each other. Required on some newer ad accounts — omitting it can cause campaign creation to fail with 'Must specify True or False in is_adse… |
lifetime_budget | string | Lifetime budget in account currency cents |
special_ad_categories | string | JSON array of special ad categories: HOUSING, EMPLOYMENT, FINANCIAL_PRODUCTS_SERVICES, ISSUES_ELECTIONS_POLITICS, NONE. This field is required by Meta on every campaign — pass '[]' or '["NONE"]' if… |
special_ad_category_country | string | JSON array of ISO 3166-1 alpha-2 country codes, e.g. '["US"]'. Required for ISSUES_ELECTIONS_POLITICS (which also requires authorization to run ads in those countries). For HOUSING, EMPLOYMENT, and FI… |
spend_cap | string | Lifetime spend cap for the campaign, in account currency cents. Once set it cannot be removed, only raised or reset — pass '0' to reset/clear it. |
start_time | string | Campaign start time (ISO 8601 format) |
status | string | Campaign status (default PAUSED) |
stop_time | string | Campaign stop time (ISO 8601 format) |
update_campaign
Update an existing campaign. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID to update |
bid_strategy | string | New bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS |
daily_budget | string | New daily budget in currency cents |
lifetime_budget | string | New lifetime budget in currency cents |
name | string | New campaign name |
spend_cap | string | Lifetime spend cap for the campaign, in account currency cents. Once set it cannot be removed, only raised or reset — pass '0' to reset/clear it. |
start_time | string | New start time (ISO 8601) |
status | string | New status: ACTIVE, PAUSED, DELETED, ARCHIVED |
stop_time | string | New stop time (ISO 8601) |
delete_campaign
Delete a campaign. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID to delete |
copy_campaign
Copy an existing campaign. Creates a duplicate with optional name override. Copies structure including ad sets and ads.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Source campaign ID to copy |
deep_copy | boolean | Copy ad sets and ads within the campaign (default true) |
name | string | Name for the copied campaign. Defaults to 'Copy of <original>' |
status | string | Status for copied campaign (default PAUSED) |
get_campaign_adsets
Get all ad sets belonging to a specific campaign.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_campaign_ads
Get all ads belonging to a specific campaign.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_campaign_leads
Get leads generated by a specific campaign. Requires leads_retrieval permission.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_adsets
List ad sets in the ad account. Optionally filter by campaign or status.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
campaign_id | string | Filter by campaign ID |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
status | string | Filter by status: ACTIVE, PAUSED, DELETED, ARCHIVED |
get_adset
Get details of a specific ad set by ID.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID |
fields | string | Comma-separated fields to return |
create_adset
Create a new ad set. Requires name, campaign_id, budget, optimization_goal, billing_event, and targeting. Defaults to PAUSED status.
| Parameter | Type | Description |
|---|---|---|
billing_event * | string | Billing event: APP_INSTALLS, CLICKS, IMPRESSIONS, LINK_CLICKS, NONE, OFFER_CLAIMS, PAGE_LIKES, POST_ENGAGEMENT, THRUPLAY, PURCHASE, LISTING_INTERACTION |
campaign_id * | string | Parent campaign ID |
name * | string | Ad set name |
optimization_goal * | string | Optimization goal: NONE, APP_INSTALLS, AD_RECALL_LIFT, ENGAGED_USERS, EVENT_RESPONSES, IMPRESSIONS, LEAD_GENERATION, QUALITY_LEAD, LINK_CLICKS, OFFSITE_CONVERSIONS, PAGE_LIKES, POST_ENGAGEMENT, QUALIT… |
targeting * | string | JSON string of targeting spec (age_min, age_max, genders, geo_locations, interests, etc.). Advantage+ Audience automation and other flags go inside this object too, e.g. targeting_automation: {"advant… |
account_id | string | Ad account ID to create the ad set in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
adset_schedule | array | Hourly delivery intervals (Sunday=0). Requires lifetime budgeting. Set timezone_type explicitly; Meta defaults to USER. |
attribution_spec | array | Attribution windows; Meta validates compatibility with the objective and optimization goal |
bid_amount | string | Bid amount in the account currency's minor unit. Required for COST_CAP or LOWEST_COST_WITH_BID_CAP except Reach and Frequency. |
bid_strategy | string | Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS |
daily_budget | string | Daily budget in currency cents (e.g. '5000' = $50.00) |
destination_type | string | Conversion destination, e.g. WEBSITE, APP, MESSENGER, INSTAGRAM_DIRECT, WHATSAPP |
dsa_beneficiary | string | Beneficiary of EU-targeted ads; may use the account's saved default when omitted |
dsa_payor | string | Payer of EU-targeted ads; does not automatically copy dsa_beneficiary. May use the account's saved default. |
end_time | string | End time (ISO 8601) |
lifetime_budget | string | Lifetime budget in currency cents |
pacing_type | array | Pacing settings. When a schedule is supplied, day_parting is required and is added if omitted. |
promoted_object | string | JSON string of the promoted_object spec. Required for many objectives, e.g. OUTCOME_SALES needs {"pixel_id":"...","custom_event_type":"PURCHASE"}, OUTCOME_APP_PROMOTION needs {"application_id":"...","… |
start_time | string | Start time (ISO 8601) |
status | string | Ad set status (default PAUSED) |
validate_only | boolean | Validate with Meta without creating or updating the ad set (default false) |
update_adset
Update an existing ad set. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID to update |
adset_schedule | array | Hourly delivery intervals (Sunday=0). Requires lifetime budgeting. Set timezone_type explicitly; Meta defaults to USER. |
attribution_spec | array | Attribution windows; Meta validates compatibility with the objective and optimization goal |
bid_amount | string | New bid amount in currency cents |
bid_strategy | string | New bid strategy |
daily_budget | string | New daily budget in currency cents |
destination_type | string | Conversion destination, e.g. WEBSITE, APP, MESSENGER, INSTAGRAM_DIRECT, WHATSAPP |
dsa_beneficiary | string | Beneficiary of EU-targeted ads |
dsa_payor | string | Payer of EU-targeted ads; does not automatically copy the beneficiary |
end_time | string | New end time (ISO 8601) |
lifetime_budget | string | New lifetime budget in currency cents |
name | string | New ad set name |
pacing_type | array | Pacing settings. When a schedule is supplied, day_parting is required and is added if omitted. |
start_time | string | New start time (ISO 8601) |
status | string | New status: ACTIVE, PAUSED, DELETED, ARCHIVED |
targeting | string | New targeting spec as JSON string. Advantage+ Audience automation flags go inside this object, e.g. targeting_automation: {"advantage_audience":1} — required for HEC-F (Housing/Employment/Financial… |
validate_only | boolean | Validate with Meta without creating or updating the ad set (default false) |
delete_adset
Delete an ad set. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID to delete |
copy_adset
Copy an existing ad set. Creates a duplicate within the same or different campaign.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Source ad set ID to copy |
campaign_id | string | Target campaign ID. If omitted, copies to same campaign |
deep_copy | boolean | Copy ads within the ad set (default true) |
name | string | Name for the copied ad set |
status | string | Status for copied ad set (default PAUSED) |
get_adset_targeting_sentence
Get human-readable targeting description for an ad set. Converts targeting spec into readable sentences.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID |
get_adset_ads
Get all ads belonging to a specific ad set.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_adset_leads
Get leads generated by a specific ad set. Requires leads_retrieval permission.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad set ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_ads
List ads in the ad account. Optionally filter by campaign, ad set, or status.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
adset_id | string | Filter by ad set ID |
after | string | Pagination cursor for next page |
campaign_id | string | Filter by campaign ID |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
status | string | Filter by status: ACTIVE, PAUSED, DELETED, ARCHIVED |
get_ad
Get details of a specific ad by ID.
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Ad ID |
fields | string | Comma-separated fields to return |
create_ad
Create a new ad. Requires name, adset_id, and creative (JSON object_story_spec). Defaults to PAUSED status.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Parent ad set ID |
creative * | string | JSON string of creative spec (object_story_spec with page_id, link_data/photo_data/video_data). Note: as of v26.0, a creative with applink_treatment=web_only can no longer be attached to an ad in a ca… |
name * | string | Ad name |
account_id | string | Ad account ID to create the ad in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
status | string | Ad status (default PAUSED) |
tracking_specs | string | JSON string of tracking specs array |
update_ad
Update an existing ad. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Ad ID to update |
creative | string | New creative spec as JSON string |
name | string | New ad name |
status | string | New status: ACTIVE, PAUSED, DELETED, ARCHIVED |
tracking_specs | string | New tracking specs as JSON string |
delete_ad
Delete an ad. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Ad ID to delete |
copy_ad
Copy an existing ad. Creates a duplicate within the same or different ad set.
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Source ad ID to copy |
adset_id | string | Target ad set ID. If omitted, copies to same ad set |
name | string | Name for the copied ad |
status | string | Status for copied ad (default PAUSED) |
get_ad_preview
Get a preview of an ad in a specific format. Returns HTML iframe for rendering.
| Parameter | Type | Description |
|---|---|---|
ad_format * | string | Ad format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc. |
ad_id * | string | Ad ID |
get_delivery_estimate
Get delivery estimate for an ad set, including estimated daily reach. Note: the delivery_estimate edge exists on the ad set (and ad account) node, not on individual ads. Also note: as of v26.0, the daily_outcomes_curve, budget_guardrail, and estimate_dau fields are no longer returned (removed with no replacement).
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad Set ID |
optimization_goal | string | Optimization goal to estimate for |
list_creatives
List ad creatives in the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_creative
Get details of a specific ad creative by ID.
| Parameter | Type | Description |
|---|---|---|
creative_id * | string | Creative ID |
fields | string | Comma-separated fields to return |
create_creative
Create a new ad creative with object_story_spec. The spec defines the ad content (link, photo, or video) and the associated Facebook Page. Notes for v26.0: poll_spec and the poll type under interactive_components_spec are no longer supported and will be rejected. If the advertiser has a shop, eligible creatives now default to destination_spec.destination_type=WEBSITE_AND_SHOP — set it to WEBSITE_AND_SHOP_OPT_OUT to opt out.
| Parameter | Type | Description |
|---|---|---|
name * | string | Creative name |
object_story_spec * | string | JSON string of object_story_spec (page_id, link_data/photo_data/video_data). Use the separate wamo_whatsapp_identity_spec parameter for WhatsApp Status ads. |
account_id | string | Ad account ID to create the creative in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
asset_feed_spec | string | JSON string of asset_feed_spec for dynamic creative |
degrees_of_freedom_spec | string | JSON object for Advantage+ creative controls, including creative_features_spec.image_animation, video_filtering, and video_uncrop |
destination_spec | string | JSON object controlling the destination; set destination_type=WEBSITE_AND_SHOP_OPT_OUT to opt out of the v26 Shops default |
url_tags | string | URL tags to append to all links |
wamo_whatsapp_identity_spec | string | JSON object with wamo_whatsapp_identity_id or whatsapp_phone_number for WhatsApp Status ads; sent at the creative's top level |
update_creative
Update an existing ad creative. Only name and url_tags can be modified after creation.
| Parameter | Type | Description |
|---|---|---|
creative_id * | string | Creative ID to update |
name | string | New creative name |
url_tags | string | New URL tags |
create_dynamic_creative
Create a dynamic creative with asset_feed_spec. Meta automatically combines different images, videos, titles, bodies, and CTAs to find the best performing combinations.
| Parameter | Type | Description |
|---|---|---|
asset_feed_spec * | string | JSON string of asset_feed_spec with arrays: images (hash), videos (video_id), bodies (text), titles (text), descriptions (text), call_to_action_types |
name * | string | Creative name |
account_id | string | Ad account ID to create the creative in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
degrees_of_freedom_spec | string | JSON object for Advantage+ creative controls, including creative_features_spec.image_animation, video_filtering, and video_uncrop |
destination_spec | string | JSON object controlling the destination; set destination_type=WEBSITE_AND_SHOP_OPT_OUT to opt out of the v26 Shops default |
object_story_spec | string | JSON object containing the associated page_id and optional instagram_user_id |
wamo_whatsapp_identity_spec | string | JSON object with wamo_whatsapp_identity_id or whatsapp_phone_number for WhatsApp Status ads; sent at the creative's top level |
generate_preview
Generate an ad preview without needing an existing ad. Provide creative spec directly to see how it would look.
| Parameter | Type | Description |
|---|---|---|
ad_format * | string | Ad format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc. |
creative * | string | JSON string of creative spec: {object_story_spec: {...}} or {object_story_id: '...'} |
account_id | string | Ad account ID to generate the preview in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
list_images
List ad images uploaded to the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
upload_image
Upload an ad image from a public URL or a local file. Returns image hash for use in ad creatives. Note: fetching from a URL requires the app to have Meta's URL-fetch capability — if that fails with an OAuthException 'Application does not have the capability to make this API call', use file_path to upload the raw bytes instead, which does not require that capability.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to upload into (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
file_path | string | Local filesystem path of the image to upload. Sent as base64-encoded bytes, bypassing Meta's URL-fetch capability requirement. |
name | string | Name to assign to the uploaded image. Defaults to the file_path basename when uploading a local file. |
url | string | Public URL of the image to upload |
get_image
Get details of a specific ad image by ID.
| Parameter | Type | Description |
|---|---|---|
image_id * | string | Image ID |
fields | string | Comma-separated fields to return |
delete_image
Delete an ad image by hash. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
hash * | string | Image hash to delete |
account_id | string | Ad account ID the image belongs to (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
list_videos
List ad videos uploaded to the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
upload_video
Upload an ad video from a public URL or a local file. Returns video ID for use in ad creatives.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to upload into (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
description | string | Video description |
file_path | string | Local filesystem path of the video to upload. Sent as multipart/form-data, bypassing the need for a publicly reachable URL. |
file_url | string | Public URL of the video to upload |
title | string | Video title |
get_video
Get details of a specific ad video by ID.
| Parameter | Type | Description |
|---|---|---|
video_id * | string | Video ID |
fields | string | Comma-separated fields to return |
delete_video
Delete an ad video. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
video_id * | string | Video ID to delete |
list_canvases
List Instant Experience (Canvas) creatives in the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_canvas
Get details of a specific Instant Experience (Canvas) by ID.
| Parameter | Type | Description |
|---|---|---|
canvas_id * | string | Canvas ID |
fields | string | Comma-separated fields to return |
create_canvas
Create a new Instant Experience (Canvas) on a Facebook Page. Requires page_id and body_elements JSON array defining the canvas layout.
| Parameter | Type | Description |
|---|---|---|
body_elements * | string | JSON array of canvas body elements (buttons, carousels, photos, videos, text, etc.) |
page_id * | string | Facebook Page ID to create the canvas on |
name | string | Canvas name |
delete_canvas
Delete an Instant Experience (Canvas). This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
canvas_id * | string | Canvas ID to delete |
list_custom_audiences
List custom audiences in the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_audience
Get details of a specific custom audience by ID.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Audience ID |
fields | string | Comma-separated fields to return |
create_custom_audience
Create a new custom audience. Subtype determines the audience source (CUSTOM, WEBSITE, APP, OFFLINE_CONVERSION, LOOKALIKE, ENGAGEMENT, etc.).
| Parameter | Type | Description |
|---|---|---|
name * | string | Audience name |
subtype * | string | Audience subtype |
account_id | string | Ad account ID to create the audience in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
customer_file_source | string | Source of customer file: USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY, BOTH_USER_AND_PARTNER_PROVIDED |
description | string | Audience description |
pixel_id | string | Pixel ID for website audiences |
retention_days | integer | Retention period; allowed range depends on the audience source |
rule | string | JSON object defining website, video, or engagement audience rules. This creates an audience; validate-only is not supported. |
update_audience
Update an existing custom audience. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Audience ID to update |
description | string | New audience description |
name | string | New audience name |
delete_audience
Delete a custom audience. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Audience ID to delete |
add_users_to_audience
Add users to a custom audience. Payload must be a JSON string containing hashed user data with a schema array defining the data types (e.g. EMAIL, PHONE, FN, LN).
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Audience ID |
payload * | string | JSON string: {schema: ['EMAIL','PHONE',...], data: [['hash1','hash2',...], ...]}. All PII must be SHA-256 hashed. |
remove_users_from_audience
Remove users from a custom audience. Payload format is the same as add_users_to_audience.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Audience ID |
payload * | string | JSON string: {schema: ['EMAIL','PHONE',...], data: [['hash1','hash2',...], ...]}. All PII must be SHA-256 hashed. |
create_lookalike_audience
Create a lookalike audience based on an existing custom audience. Ratio (1-10) determines how closely the new audience resembles the source.
| Parameter | Type | Description |
|---|---|---|
lookalike_spec * | string | JSON string: {country: 'US', ratio: 0.01-0.10} where ratio is the lookalike percentage (1%-10%) |
name * | string | Lookalike audience name |
origin_audience_id * | string | Source custom audience ID |
account_id | string | Ad account ID to create the audience in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
get_audience_health
Get health status and delivery readiness of a custom audience. Shows match rate, size, and operation status.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Custom audience ID |
list_saved_audiences
List saved audiences in the ad account. Saved audiences are reusable targeting presets.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_saved_audience
Get details of a specific saved audience by ID.
| Parameter | Type | Description |
|---|---|---|
audience_id * | string | Saved audience ID |
fields | string | Comma-separated fields to return |
search_targeting
Search for targeting options (interests, behaviors, demographics, etc.) by keyword. Use this to find valid targeting IDs for ad set targeting specs.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query (e.g. 'fitness', 'technology', 'cooking') |
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
limit | number | Number of results (default 25) |
type | string | Targeting type filter: adinterest, adgeolocation, adeducationschool, adeducationmajor, adworkemployer, adworkposition, adlocale, etc. |
search_locations
Search for geographic locations (countries, regions, cities, zip codes) for ad targeting.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query (e.g. 'New York', 'California', 'United States') |
limit | number | Number of results (default 25) |
location_types | string | Comma-separated location types: country, region, city, zip, geo_market, electoral_district |
search_targeting_map
Map targeting IDs to their full details (names, types, paths). Useful for resolving IDs obtained from other endpoints.
| Parameter | Type | Description |
|---|---|---|
targeting_list * | string | JSON array of targeting IDs to look up |
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
get_reach_estimate
Get estimated audience reach for a given targeting specification. Useful for planning campaigns before creating them.
| Parameter | Type | Description |
|---|---|---|
targeting_spec * | string | JSON string of targeting spec (same format as ad set targeting) |
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
get_targeting_suggestions
Get targeting suggestions based on existing targeting criteria. Meta suggests related interests, behaviors, and demographics.
| Parameter | Type | Description |
|---|---|---|
targeting_list * | string | JSON string of current targeting criteria to get suggestions for |
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
get_account_insights
Get performance insights for the ad account. Returns metrics like impressions, clicks, spend, reach, etc.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
breakdowns | string | Breakdown dimensions: age,gender,country,region,publisher_platform,platform_position,device_platform,comscore_market (replaces dma). Some accounts must opt in in Ads Manager for impression_device, hou… |
date_preset | string | Lowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year |
fields | string | Comma-separated insight fields |
filtering | string | JSON string for filtering |
level | string | Aggregation level: campaign, adset, ad |
time_increment | string | Time granularity: all_days, 1, 7, monthly |
time_range | string | JSON string {since,until} in YYYY-MM-DD format |
get_campaign_insights
Get performance insights for a specific campaign.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Campaign ID |
breakdowns | string | Breakdown dimensions: age,gender,country,region,publisher_platform,platform_position,device_platform,comscore_market (replaces dma). Some accounts must opt in in Ads Manager for impression_device, hou… |
date_preset | string | Lowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year |
fields | string | Comma-separated insight fields |
filtering | string | JSON string for filtering |
level | string | Aggregation level: campaign, adset, ad |
time_increment | string | Time granularity: all_days, 1, 7, monthly |
time_range | string | JSON string {since,until} in YYYY-MM-DD format |
get_adset_insights
Get performance insights for a specific ad set.
| Parameter | Type | Description |
|---|---|---|
adset_id * | string | Ad Set ID |
breakdowns | string | Breakdown dimensions: age,gender,country,region,publisher_platform,platform_position,device_platform,comscore_market (replaces dma). Some accounts must opt in in Ads Manager for impression_device, hou… |
date_preset | string | Lowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year |
fields | string | Comma-separated insight fields |
filtering | string | JSON string for filtering |
level | string | Aggregation level: campaign, adset, ad |
time_increment | string | Time granularity: all_days, 1, 7, monthly |
time_range | string | JSON string {since,until} in YYYY-MM-DD format |
get_ad_insights
Get performance insights for a specific ad.
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | Ad ID |
breakdowns | string | Breakdown dimensions: age,gender,country,region,publisher_platform,platform_position,device_platform,comscore_market (replaces dma). Some accounts must opt in in Ads Manager for impression_device, hou… |
date_preset | string | Lowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year |
fields | string | Comma-separated insight fields |
filtering | string | JSON string for filtering |
level | string | Aggregation level: campaign, adset, ad |
time_increment | string | Time granularity: all_days, 1, 7, monthly |
time_range | string | JSON string {since,until} in YYYY-MM-DD format |
create_async_report
Create an async insight report for large data queries. Returns a report_run_id to poll with get_async_report.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
breakdowns | string | Breakdown dimensions: age,gender,country,region,publisher_platform,platform_position,device_platform,comscore_market (replaces dma). Some accounts must opt in in Ads Manager for impression_device, hou… |
date_preset | string | Lowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year |
fields | string | Comma-separated insight fields |
filtering | string | JSON string for filtering |
level | string | Aggregation level: campaign, adset, ad |
time_increment | string | Time granularity: all_days, 1, 7, monthly |
time_range | string | JSON string {since,until} in YYYY-MM-DD format |
get_async_report
Check status and retrieve results of an async insight report.
| Parameter | Type | Description |
|---|---|---|
report_run_id * | string | Report run ID from create_async_report |
after | string | Pagination cursor for the result page |
fields | string | Comma-separated insight fields to return once the job completes |
include_results | boolean | Fetch /{report_run_id}/insights when the job is complete |
limit | integer | Maximum result rows per page |
get_form_leads
Get leads submitted through a lead generation form.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | Lead form ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
get_lead
Get details of a specific lead by ID.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | Lead ID |
fields | string | Comma-separated fields to return |
list_lead_forms
List lead generation forms for a Facebook Page.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Facebook Page ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
create_lead_form
Create a new lead generation form on a Facebook Page. Requires pages_manage_ads permission.
| Parameter | Type | Description |
|---|---|---|
name * | string | Lead form name |
page_id * | string | Facebook Page ID |
privacy_policy_url * | string | URL to privacy policy |
questions * | string | JSON array of questions. Each: {key: string, type: 'CUSTOM'|'EMAIL'|'PHONE'|'FULL_NAME'|'CITY'|'STATE'|'COUNTRY'|'ZIP'|'JOB_TITLE'|'COMPANY_NAME', label?: string} |
follow_up_action_url | string | URL to redirect after submission |
thank_you_page | string | JSON object: {title: string, body: string, button_text?: string, button_type?: 'VIEW_WEBSITE'|'DOWNLOAD'} |
get_lead_form
Get details of a specific lead generation form.
| Parameter | Type | Description |
|---|---|---|
form_id * | string | Lead form ID |
fields | string | Comma-separated fields to return |
list_catalogs
List product catalogs for the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
get_catalog
Get details of a specific product catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
fields | string | Comma-separated fields to return |
create_catalog
Create a new product catalog for the ad account.
| Parameter | Type | Description |
|---|---|---|
name * | string | Catalog name |
account_id | string | Ad account ID to create the catalog in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
vertical | string | Catalog vertical: commerce, hotels, flights, destinations, home_listings, vehicles |
update_catalog
Update an existing product catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
name | string | New catalog name |
list_product_sets
List product sets within a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
create_product_set
Create a new product set within a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
name * | string | Product set name |
filter | string | JSON string of filter rules for the product set |
get_product_set
Get details of a specific product set.
| Parameter | Type | Description |
|---|---|---|
set_id * | string | Product set ID |
fields | string | Comma-separated fields to return |
update_product_set
Update an existing product set.
| Parameter | Type | Description |
|---|---|---|
set_id * | string | Product set ID |
filter | string | JSON string of updated filter rules |
name | string | New product set name |
list_products
List products within a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
filter | string | JSON string of filter rules |
limit | number | Number of results to return |
get_product
Get details of a specific product.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | Product ID |
fields | string | Comma-separated fields to return |
update_product
Update an existing product in a catalog.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | Product ID |
availability | string | Product availability: in stock, out of stock, etc. |
description | string | Product description |
image_url | string | Product image URL |
name | string | Product name |
price | string | Product price (e.g. '9.99 USD') |
url | string | Product URL |
batch_products
Batch create, update, or delete products in a catalog. Supports up to 5,000 items per request. Update operations support upsert.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
requests * | string | JSON array of batch requests. Each: {method: 'CREATE'|'UPDATE'|'DELETE', retailer_id: string, data?: {name, description, price, url, image_url, availability, ...}} |
allow_upsert | boolean | Allow UPDATE to create items if they don't exist (default false) |
get_batch_status
Check the status of a catalog batch operation.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
handle * | string | Batch handle returned from batch_products |
list_feeds
List product feeds for a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
create_feed
Create a new product feed for a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_id * | string | Product catalog ID |
name * | string | Feed name |
file_url | string | URL of the feed file |
schedule | string | JSON string for feed schedule configuration |
upload_feed
Upload/trigger a feed file upload for a product feed.
| Parameter | Type | Description |
|---|---|---|
feed_id * | string | Product feed ID |
url * | string | URL of the feed file to upload |
get_feed_uploads
Get upload history for a product feed.
| Parameter | Type | Description |
|---|---|---|
feed_id * | string | Product feed ID |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
list_rules
List automated rules for the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
get_rule
Get details of a specific automated rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Rule ID |
fields | string | Comma-separated fields to return |
create_rule
Create a new automated rule for the ad account.
| Parameter | Type | Description |
|---|---|---|
evaluation_spec * | string | JSON string defining rule conditions |
execution_spec * | string | JSON string defining rule actions |
name * | string | Rule name |
account_id | string | Ad account ID to create the rule in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
schedule_spec | string | JSON string defining rule schedule |
update_rule
Update an existing automated rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Rule ID |
evaluation_spec | string | JSON string defining updated rule conditions |
execution_spec | string | JSON string defining updated rule actions |
name | string | New rule name |
schedule_spec | string | JSON string defining updated rule schedule |
status | string | Rule status: ENABLED, DISABLED |
delete_rule
Delete an automated rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Rule ID |
list_experiments
List A/B test experiments (ad studies) for the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
create_experiment
Create a new A/B test experiment (ad study).
| Parameter | Type | Description |
|---|---|---|
cells * | string | JSON array of test cells: [{name, campaign_id}] |
end_time * | string | End time in ISO 8601 or Unix timestamp |
name * | string | Experiment name |
start_time * | string | Start time in ISO 8601 or Unix timestamp |
account_id | string | Ad account ID to create the experiment in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
description | string | Experiment description |
type | string | Study type |
get_experiment
Get details of a specific experiment (ad study).
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string | Experiment (ad study) ID |
fields | string | Comma-separated fields to return |
update_experiment
Update an existing experiment (ad study).
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string | Experiment (ad study) ID |
description | string | New experiment description |
name | string | New experiment name |
get_experiment_results
Get results/cells of an experiment (ad study).
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string | Experiment (ad study) ID |
fields | string | Comma-separated fields to return |
send_conversion_event
Send a server-side conversion event via the Conversions API (pixel).
| Parameter | Type | Description |
|---|---|---|
events * | string | JSON array of events: [{event_name, event_time, user_data, custom_data, action_source}] |
test_event_code | string | Events Manager test code; use to verify delivery as test events |
send_offline_event
Send offline conversion events through the Conversions API to a dataset. Store events must use action_source=physical_store.
| Parameter | Type | Description |
|---|---|---|
event_set_id * | string | Dataset ID for offline events (legacy parameter name retained) |
events * | string | JSON array of offline events |
test_event_code | string | Events Manager test code; use to verify delivery as test events |
list_offline_event_sets
List offline conversion data sets for the ad account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results to return |
create_offline_event_set
Create a new offline conversion data set.
| Parameter | Type | Description |
|---|---|---|
name * | string | Event set name |
account_id | string | Ad account ID to create the event set in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
description | string | Event set description |
list_budget_schedules
List budget schedules attached to a campaign or ad set. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
parent_id * | string | Campaign or ad set ID that owns the budget schedules |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | integer | Number of results (default 25) |
parent_type | string | Type of parent object |
create_budget_schedule
Create a budget schedule on a campaign or ad set.
| Parameter | Type | Description |
|---|---|---|
budget_value * | integer | Unsigned value interpreted according to budget_value_type (ABSOLUTE uses currency minor units) |
budget_value_type * | string | How budget_value is applied |
parent_id * | string | Campaign or ad set ID that will own the budget schedule |
time_end * | integer | Schedule end time as a Unix timestamp |
time_start * | integer | Schedule start time as a Unix timestamp |
parent_type | string | Type of parent object |
update_budget_schedule
Update an existing budget schedule. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
schedule_id * | string | Budget schedule ID to update |
budget_value | integer | New unsigned value interpreted according to budget_value_type |
budget_value_type | string | How budget_value is applied |
time_end | integer | New end time as a Unix timestamp |
time_start | integer | New start time as a Unix timestamp |
delete_budget_schedule
Delete a budget schedule. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
schedule_id * | string | Budget schedule ID to delete |
list_rf_predictions
List reach & frequency predictions for the ad account. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
create_rf_prediction
Create a new reach & frequency prediction. Provide targeting spec as JSON string, budget in cents, and scheduling info.
| Parameter | Type | Description |
|---|---|---|
budget * | number | Budget in account currency cents |
destination_id * | string | Destination ID (e.g. Facebook Page ID) |
frequency_cap * | number | Maximum frequency cap per user |
start_time * | string | Prediction start time (ISO 8601 or Unix timestamp) |
stop_time * | string | Prediction stop time (ISO 8601 or Unix timestamp) |
target_spec * | string | JSON string of targeting specification |
account_id | string | Ad account ID to create the prediction in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
get_rf_prediction
Get details of a specific reach & frequency prediction by ID.
| Parameter | Type | Description |
|---|---|---|
prediction_id * | string | Prediction ID |
fields | string | Comma-separated fields to return |
delete_rf_prediction
Delete a reach & frequency prediction. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
prediction_id * | string | Prediction ID to delete |
list_block_lists
List publisher block lists for the ad account. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
create_block_list
Create a new publisher block list for the ad account.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the block list |
account_id | string | Ad account ID to create the block list in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
add_to_block_list
Add publisher URLs to an existing block list.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Block list ID |
urls * | string | JSON array of URLs to block (e.g. '["example.com","bad-site.com"]') |
remove_from_block_list
Remove publisher URLs from an existing block list.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Block list ID |
urls * | string | JSON array of URLs to remove (e.g. '["example.com"]') |
delete_block_list
Delete a publisher block list. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Block list ID to delete |
get_ad_account
Get details of the configured ad account including status, balance, currency, timezone, and spend info.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
fields | string | Comma-separated fields to return |
list_ad_accounts
List all ad accounts accessible by the current user. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
update_ad_account
Update the configured ad account settings. Only provided fields will be modified.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to update (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
name | string | New account name |
spend_cap | string | Account spend cap in currency cents (e.g. '100000' = $1000.00) |
timezone_name | string | New timezone (e.g. 'America/New_York') |
get_account_activities
Get activity log for the ad account. Shows changes made to campaigns, ad sets, ads, etc.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_account_users
List users who have access to the ad account with their roles and permissions.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Ad account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_businesses
List all businesses accessible by the current user. Returns paginated results.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
get_business
Get details of a specific business by ID.
| Parameter | Type | Description |
|---|---|---|
business_id * | string | Business ID |
fields | string | Comma-separated fields to return |
list_business_ad_accounts
List ad accounts owned by the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_business_users
List users of the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
add_business_user
Add a user to the configured business by email. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address of the user to add |
role * | string | Role for the new user |
remove_business_user
Remove a user from the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID to remove from the business |
list_business_pages
List Facebook Pages owned by the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_business_instagram_accounts
List Instagram accounts owned by the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
list_system_users
List system users of the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
create_system_user
Create a new system user in the configured business. Requires META_BUSINESS_ID env var.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the system user |
role * | string | Role for the system user |
exchange_token
Exchange a short-lived access token for a long-lived token. Requires META_APP_ID and META_APP_SECRET to be configured.
| Parameter | Type | Description |
|---|---|---|
short_lived_token * | string | Short-lived access token to exchange |
refresh_token
Extend a valid long-lived user access token through Meta's documented token exchange flow. Requires META_APP_ID and META_APP_SECRET.
| Parameter | Type | Description |
|---|---|---|
long_lived_token * | string | Long-lived access token to refresh |
debug_token
Debug an access token to inspect its properties, permissions, expiration, and validity. Requires META_APP_ID and META_APP_SECRET.
| Parameter | Type | Description |
|---|---|---|
input_token * | string | Access token to debug/inspect |
search_ad_library
Search the Meta Ad Library for ads. Allows searching by keywords, countries, and ad type. Useful for competitive research and transparency.
| Parameter | Type | Description |
|---|---|---|
ad_reached_countries * | string | Comma-separated country codes where ads were shown (e.g. 'US,GB,KR') |
search_terms * | string | Keywords to search for in ads |
ad_type | string | Ad type filter: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, etc. |
after | string | Pagination cursor for next page |
fields | string | Comma-separated fields to return |
limit | number | Number of results (default 25) |
order_by | string | Sort order for results |