meta-ads

v1.6.1
io.github.mikusnuz/meta-ads Checked 5 days ago Published 1 month ago

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

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
beforestringPagination cursor for previous page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)
objectivestringFilter by objective: OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_TRAFFIC, OUTCOME_APP_PROMOTION
statusstringFilter by status: ACTIVE, PAUSED, DELETED, ARCHIVED

get_campaign

Get details of a specific campaign by ID.

ParameterTypeDescription
campaign_id *stringCampaign ID
fieldsstringComma-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.

ParameterTypeDescription
name *stringCampaign name
objective *stringCampaign objective
account_idstringAd 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_strategystringBid 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_budgetstringDaily budget in account currency cents (e.g. '5000' = $50.00)
is_adset_budget_sharing_enabledbooleanWhether 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_budgetstringLifetime budget in account currency cents
special_ad_categoriesstringJSON 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_countrystringJSON 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_capstringLifetime 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_timestringCampaign start time (ISO 8601 format)
statusstringCampaign status (default PAUSED)
stop_timestringCampaign stop time (ISO 8601 format)

update_campaign

Update an existing campaign. Only provided fields will be modified.

ParameterTypeDescription
campaign_id *stringCampaign ID to update
bid_strategystringNew bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS
daily_budgetstringNew daily budget in currency cents
lifetime_budgetstringNew lifetime budget in currency cents
namestringNew campaign name
spend_capstringLifetime 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_timestringNew start time (ISO 8601)
statusstringNew status: ACTIVE, PAUSED, DELETED, ARCHIVED
stop_timestringNew stop time (ISO 8601)

delete_campaign

Delete a campaign. This action is irreversible.

ParameterTypeDescription
campaign_id *stringCampaign ID to delete

copy_campaign

Copy an existing campaign. Creates a duplicate with optional name override. Copies structure including ad sets and ads.

ParameterTypeDescription
campaign_id *stringSource campaign ID to copy
deep_copybooleanCopy ad sets and ads within the campaign (default true)
namestringName for the copied campaign. Defaults to 'Copy of <original>'
statusstringStatus for copied campaign (default PAUSED)

get_campaign_adsets

Get all ad sets belonging to a specific campaign.

ParameterTypeDescription
campaign_id *stringCampaign ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_campaign_ads

Get all ads belonging to a specific campaign.

ParameterTypeDescription
campaign_id *stringCampaign ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_campaign_leads

Get leads generated by a specific campaign. Requires leads_retrieval permission.

ParameterTypeDescription
campaign_id *stringCampaign ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_adsets

List ad sets in the ad account. Optionally filter by campaign or status.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
campaign_idstringFilter by campaign ID
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)
statusstringFilter by status: ACTIVE, PAUSED, DELETED, ARCHIVED

get_adset

Get details of a specific ad set by ID.

ParameterTypeDescription
adset_id *stringAd set ID
fieldsstringComma-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.

ParameterTypeDescription
billing_event *stringBilling event: APP_INSTALLS, CLICKS, IMPRESSIONS, LINK_CLICKS, NONE, OFFER_CLAIMS, PAGE_LIKES, POST_ENGAGEMENT, THRUPLAY, PURCHASE, LISTING_INTERACTION
campaign_id *stringParent campaign ID
name *stringAd set name
optimization_goal *stringOptimization 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 *stringJSON 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_idstringAd 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_schedulearrayHourly delivery intervals (Sunday=0). Requires lifetime budgeting. Set timezone_type explicitly; Meta defaults to USER.
attribution_specarrayAttribution windows; Meta validates compatibility with the objective and optimization goal
bid_amountstringBid amount in the account currency's minor unit. Required for COST_CAP or LOWEST_COST_WITH_BID_CAP except Reach and Frequency.
bid_strategystringBid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS
daily_budgetstringDaily budget in currency cents (e.g. '5000' = $50.00)
destination_typestringConversion destination, e.g. WEBSITE, APP, MESSENGER, INSTAGRAM_DIRECT, WHATSAPP
dsa_beneficiarystringBeneficiary of EU-targeted ads; may use the account's saved default when omitted
dsa_payorstringPayer of EU-targeted ads; does not automatically copy dsa_beneficiary. May use the account's saved default.
end_timestringEnd time (ISO 8601)
lifetime_budgetstringLifetime budget in currency cents
pacing_typearrayPacing settings. When a schedule is supplied, day_parting is required and is added if omitted.
promoted_objectstringJSON 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_timestringStart time (ISO 8601)
statusstringAd set status (default PAUSED)
validate_onlybooleanValidate with Meta without creating or updating the ad set (default false)

update_adset

Update an existing ad set. Only provided fields will be modified.

ParameterTypeDescription
adset_id *stringAd set ID to update
adset_schedulearrayHourly delivery intervals (Sunday=0). Requires lifetime budgeting. Set timezone_type explicitly; Meta defaults to USER.
attribution_specarrayAttribution windows; Meta validates compatibility with the objective and optimization goal
bid_amountstringNew bid amount in currency cents
bid_strategystringNew bid strategy
daily_budgetstringNew daily budget in currency cents
destination_typestringConversion destination, e.g. WEBSITE, APP, MESSENGER, INSTAGRAM_DIRECT, WHATSAPP
dsa_beneficiarystringBeneficiary of EU-targeted ads
dsa_payorstringPayer of EU-targeted ads; does not automatically copy the beneficiary
end_timestringNew end time (ISO 8601)
lifetime_budgetstringNew lifetime budget in currency cents
namestringNew ad set name
pacing_typearrayPacing settings. When a schedule is supplied, day_parting is required and is added if omitted.
start_timestringNew start time (ISO 8601)
statusstringNew status: ACTIVE, PAUSED, DELETED, ARCHIVED
targetingstringNew 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_onlybooleanValidate with Meta without creating or updating the ad set (default false)

delete_adset

Delete an ad set. This action is irreversible.

ParameterTypeDescription
adset_id *stringAd set ID to delete

copy_adset

Copy an existing ad set. Creates a duplicate within the same or different campaign.

ParameterTypeDescription
adset_id *stringSource ad set ID to copy
campaign_idstringTarget campaign ID. If omitted, copies to same campaign
deep_copybooleanCopy ads within the ad set (default true)
namestringName for the copied ad set
statusstringStatus 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.

ParameterTypeDescription
adset_id *stringAd set ID

get_adset_ads

Get all ads belonging to a specific ad set.

ParameterTypeDescription
adset_id *stringAd set ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_adset_leads

Get leads generated by a specific ad set. Requires leads_retrieval permission.

ParameterTypeDescription
adset_id *stringAd set ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_ads

List ads in the ad account. Optionally filter by campaign, ad set, or status.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
adset_idstringFilter by ad set ID
afterstringPagination cursor for next page
campaign_idstringFilter by campaign ID
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)
statusstringFilter by status: ACTIVE, PAUSED, DELETED, ARCHIVED

get_ad

Get details of a specific ad by ID.

ParameterTypeDescription
ad_id *stringAd ID
fieldsstringComma-separated fields to return

create_ad

Create a new ad. Requires name, adset_id, and creative (JSON object_story_spec). Defaults to PAUSED status.

ParameterTypeDescription
adset_id *stringParent ad set ID
creative *stringJSON 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 *stringAd name
account_idstringAd account ID to create the ad in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
statusstringAd status (default PAUSED)
tracking_specsstringJSON string of tracking specs array

update_ad

Update an existing ad. Only provided fields will be modified.

ParameterTypeDescription
ad_id *stringAd ID to update
creativestringNew creative spec as JSON string
namestringNew ad name
statusstringNew status: ACTIVE, PAUSED, DELETED, ARCHIVED
tracking_specsstringNew tracking specs as JSON string

delete_ad

Delete an ad. This action is irreversible.

ParameterTypeDescription
ad_id *stringAd ID to delete

copy_ad

Copy an existing ad. Creates a duplicate within the same or different ad set.

ParameterTypeDescription
ad_id *stringSource ad ID to copy
adset_idstringTarget ad set ID. If omitted, copies to same ad set
namestringName for the copied ad
statusstringStatus for copied ad (default PAUSED)

get_ad_preview

Get a preview of an ad in a specific format. Returns HTML iframe for rendering.

ParameterTypeDescription
ad_format *stringAd format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc.
ad_id *stringAd 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).

ParameterTypeDescription
adset_id *stringAd Set ID
optimization_goalstringOptimization goal to estimate for

list_creatives

List ad creatives in the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_creative

Get details of a specific ad creative by ID.

ParameterTypeDescription
creative_id *stringCreative ID
fieldsstringComma-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.

ParameterTypeDescription
name *stringCreative name
object_story_spec *stringJSON 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_idstringAd 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_specstringJSON string of asset_feed_spec for dynamic creative
degrees_of_freedom_specstringJSON object for Advantage+ creative controls, including creative_features_spec.image_animation, video_filtering, and video_uncrop
destination_specstringJSON object controlling the destination; set destination_type=WEBSITE_AND_SHOP_OPT_OUT to opt out of the v26 Shops default
url_tagsstringURL tags to append to all links
wamo_whatsapp_identity_specstringJSON 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.

ParameterTypeDescription
creative_id *stringCreative ID to update
namestringNew creative name
url_tagsstringNew 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.

ParameterTypeDescription
asset_feed_spec *stringJSON string of asset_feed_spec with arrays: images (hash), videos (video_id), bodies (text), titles (text), descriptions (text), call_to_action_types
name *stringCreative name
account_idstringAd 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_specstringJSON object for Advantage+ creative controls, including creative_features_spec.image_animation, video_filtering, and video_uncrop
destination_specstringJSON object controlling the destination; set destination_type=WEBSITE_AND_SHOP_OPT_OUT to opt out of the v26 Shops default
object_story_specstringJSON object containing the associated page_id and optional instagram_user_id
wamo_whatsapp_identity_specstringJSON 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.

ParameterTypeDescription
ad_format *stringAd format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc.
creative *stringJSON string of creative spec: {object_story_spec: {...}} or {object_story_id: '...'}
account_idstringAd 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.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber 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.

ParameterTypeDescription
account_idstringAd account ID to upload into (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
file_pathstringLocal filesystem path of the image to upload. Sent as base64-encoded bytes, bypassing Meta's URL-fetch capability requirement.
namestringName to assign to the uploaded image. Defaults to the file_path basename when uploading a local file.
urlstringPublic URL of the image to upload

get_image

Get details of a specific ad image by ID.

ParameterTypeDescription
image_id *stringImage ID
fieldsstringComma-separated fields to return

delete_image

Delete an ad image by hash. This action is irreversible.

ParameterTypeDescription
hash *stringImage hash to delete
account_idstringAd 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.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber 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.

ParameterTypeDescription
account_idstringAd account ID to upload into (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
descriptionstringVideo description
file_pathstringLocal filesystem path of the video to upload. Sent as multipart/form-data, bypassing the need for a publicly reachable URL.
file_urlstringPublic URL of the video to upload
titlestringVideo title

get_video

Get details of a specific ad video by ID.

ParameterTypeDescription
video_id *stringVideo ID
fieldsstringComma-separated fields to return

delete_video

Delete an ad video. This action is irreversible.

ParameterTypeDescription
video_id *stringVideo ID to delete

list_canvases

List Instant Experience (Canvas) creatives in the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_canvas

Get details of a specific Instant Experience (Canvas) by ID.

ParameterTypeDescription
canvas_id *stringCanvas ID
fieldsstringComma-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.

ParameterTypeDescription
body_elements *stringJSON array of canvas body elements (buttons, carousels, photos, videos, text, etc.)
page_id *stringFacebook Page ID to create the canvas on
namestringCanvas name

delete_canvas

Delete an Instant Experience (Canvas). This action is irreversible.

ParameterTypeDescription
canvas_id *stringCanvas ID to delete

list_custom_audiences

List custom audiences in the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_audience

Get details of a specific custom audience by ID.

ParameterTypeDescription
audience_id *stringAudience ID
fieldsstringComma-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.).

ParameterTypeDescription
name *stringAudience name
subtype *stringAudience subtype
account_idstringAd 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_sourcestringSource of customer file: USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY, BOTH_USER_AND_PARTNER_PROVIDED
descriptionstringAudience description
pixel_idstringPixel ID for website audiences
retention_daysintegerRetention period; allowed range depends on the audience source
rulestringJSON 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.

ParameterTypeDescription
audience_id *stringAudience ID to update
descriptionstringNew audience description
namestringNew audience name

delete_audience

Delete a custom audience. This action is irreversible.

ParameterTypeDescription
audience_id *stringAudience 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).

ParameterTypeDescription
audience_id *stringAudience ID
payload *stringJSON 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.

ParameterTypeDescription
audience_id *stringAudience ID
payload *stringJSON 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.

ParameterTypeDescription
lookalike_spec *stringJSON string: {country: 'US', ratio: 0.01-0.10} where ratio is the lookalike percentage (1%-10%)
name *stringLookalike audience name
origin_audience_id *stringSource custom audience ID
account_idstringAd 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.

ParameterTypeDescription
audience_id *stringCustom audience ID

list_saved_audiences

List saved audiences in the ad account. Saved audiences are reusable targeting presets.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_saved_audience

Get details of a specific saved audience by ID.

ParameterTypeDescription
audience_id *stringSaved audience ID
fieldsstringComma-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.

ParameterTypeDescription
q *stringSearch query (e.g. 'fitness', 'technology', 'cooking')
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
limitnumberNumber of results (default 25)
typestringTargeting type filter: adinterest, adgeolocation, adeducationschool, adeducationmajor, adworkemployer, adworkposition, adlocale, etc.

search_locations

Search for geographic locations (countries, regions, cities, zip codes) for ad targeting.

ParameterTypeDescription
q *stringSearch query (e.g. 'New York', 'California', 'United States')
limitnumberNumber of results (default 25)
location_typesstringComma-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.

ParameterTypeDescription
targeting_list *stringJSON array of targeting IDs to look up
account_idstringAd 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.

ParameterTypeDescription
targeting_spec *stringJSON string of targeting spec (same format as ad set targeting)
account_idstringAd 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.

ParameterTypeDescription
targeting_list *stringJSON string of current targeting criteria to get suggestions for
account_idstringAd 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.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
breakdownsstringBreakdown 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_presetstringLowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year
fieldsstringComma-separated insight fields
filteringstringJSON string for filtering
levelstringAggregation level: campaign, adset, ad
time_incrementstringTime granularity: all_days, 1, 7, monthly
time_rangestringJSON string {since,until} in YYYY-MM-DD format

get_campaign_insights

Get performance insights for a specific campaign.

ParameterTypeDescription
campaign_id *stringCampaign ID
breakdownsstringBreakdown 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_presetstringLowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year
fieldsstringComma-separated insight fields
filteringstringJSON string for filtering
levelstringAggregation level: campaign, adset, ad
time_incrementstringTime granularity: all_days, 1, 7, monthly
time_rangestringJSON string {since,until} in YYYY-MM-DD format

get_adset_insights

Get performance insights for a specific ad set.

ParameterTypeDescription
adset_id *stringAd Set ID
breakdownsstringBreakdown 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_presetstringLowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year
fieldsstringComma-separated insight fields
filteringstringJSON string for filtering
levelstringAggregation level: campaign, adset, ad
time_incrementstringTime granularity: all_days, 1, 7, monthly
time_rangestringJSON string {since,until} in YYYY-MM-DD format

get_ad_insights

Get performance insights for a specific ad.

ParameterTypeDescription
ad_id *stringAd ID
breakdownsstringBreakdown 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_presetstringLowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year
fieldsstringComma-separated insight fields
filteringstringJSON string for filtering
levelstringAggregation level: campaign, adset, ad
time_incrementstringTime granularity: all_days, 1, 7, monthly
time_rangestringJSON 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.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
breakdownsstringBreakdown 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_presetstringLowercase date preset, for example: today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, this_quarter, last_quarter, this_year, last_year
fieldsstringComma-separated insight fields
filteringstringJSON string for filtering
levelstringAggregation level: campaign, adset, ad
time_incrementstringTime granularity: all_days, 1, 7, monthly
time_rangestringJSON string {since,until} in YYYY-MM-DD format

get_async_report

Check status and retrieve results of an async insight report.

ParameterTypeDescription
report_run_id *stringReport run ID from create_async_report
afterstringPagination cursor for the result page
fieldsstringComma-separated insight fields to return once the job completes
include_resultsbooleanFetch /{report_run_id}/insights when the job is complete
limitintegerMaximum result rows per page

get_form_leads

Get leads submitted through a lead generation form.

ParameterTypeDescription
form_id *stringLead form ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

get_lead

Get details of a specific lead by ID.

ParameterTypeDescription
lead_id *stringLead ID
fieldsstringComma-separated fields to return

list_lead_forms

List lead generation forms for a Facebook Page.

ParameterTypeDescription
page_id *stringFacebook Page ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

create_lead_form

Create a new lead generation form on a Facebook Page. Requires pages_manage_ads permission.

ParameterTypeDescription
name *stringLead form name
page_id *stringFacebook Page ID
privacy_policy_url *stringURL to privacy policy
questions *stringJSON 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_urlstringURL to redirect after submission
thank_you_pagestringJSON object: {title: string, body: string, button_text?: string, button_type?: 'VIEW_WEBSITE'|'DOWNLOAD'}

get_lead_form

Get details of a specific lead generation form.

ParameterTypeDescription
form_id *stringLead form ID
fieldsstringComma-separated fields to return

list_catalogs

List product catalogs for the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

get_catalog

Get details of a specific product catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
fieldsstringComma-separated fields to return

create_catalog

Create a new product catalog for the ad account.

ParameterTypeDescription
name *stringCatalog name
account_idstringAd account ID to create the catalog in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
verticalstringCatalog vertical: commerce, hotels, flights, destinations, home_listings, vehicles

update_catalog

Update an existing product catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
namestringNew catalog name

list_product_sets

List product sets within a catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

create_product_set

Create a new product set within a catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
name *stringProduct set name
filterstringJSON string of filter rules for the product set

get_product_set

Get details of a specific product set.

ParameterTypeDescription
set_id *stringProduct set ID
fieldsstringComma-separated fields to return

update_product_set

Update an existing product set.

ParameterTypeDescription
set_id *stringProduct set ID
filterstringJSON string of updated filter rules
namestringNew product set name

list_products

List products within a catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
filterstringJSON string of filter rules
limitnumberNumber of results to return

get_product

Get details of a specific product.

ParameterTypeDescription
product_id *stringProduct ID
fieldsstringComma-separated fields to return

update_product

Update an existing product in a catalog.

ParameterTypeDescription
product_id *stringProduct ID
availabilitystringProduct availability: in stock, out of stock, etc.
descriptionstringProduct description
image_urlstringProduct image URL
namestringProduct name
pricestringProduct price (e.g. '9.99 USD')
urlstringProduct URL

batch_products

Batch create, update, or delete products in a catalog. Supports up to 5,000 items per request. Update operations support upsert.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
requests *stringJSON array of batch requests. Each: {method: 'CREATE'|'UPDATE'|'DELETE', retailer_id: string, data?: {name, description, price, url, image_url, availability, ...}}
allow_upsertbooleanAllow UPDATE to create items if they don't exist (default false)

get_batch_status

Check the status of a catalog batch operation.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
handle *stringBatch handle returned from batch_products

list_feeds

List product feeds for a catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

create_feed

Create a new product feed for a catalog.

ParameterTypeDescription
catalog_id *stringProduct catalog ID
name *stringFeed name
file_urlstringURL of the feed file
schedulestringJSON string for feed schedule configuration

upload_feed

Upload/trigger a feed file upload for a product feed.

ParameterTypeDescription
feed_id *stringProduct feed ID
url *stringURL of the feed file to upload

get_feed_uploads

Get upload history for a product feed.

ParameterTypeDescription
feed_id *stringProduct feed ID
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

list_rules

List automated rules for the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

get_rule

Get details of a specific automated rule.

ParameterTypeDescription
rule_id *stringRule ID
fieldsstringComma-separated fields to return

create_rule

Create a new automated rule for the ad account.

ParameterTypeDescription
evaluation_spec *stringJSON string defining rule conditions
execution_spec *stringJSON string defining rule actions
name *stringRule name
account_idstringAd 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_specstringJSON string defining rule schedule

update_rule

Update an existing automated rule.

ParameterTypeDescription
rule_id *stringRule ID
evaluation_specstringJSON string defining updated rule conditions
execution_specstringJSON string defining updated rule actions
namestringNew rule name
schedule_specstringJSON string defining updated rule schedule
statusstringRule status: ENABLED, DISABLED

delete_rule

Delete an automated rule.

ParameterTypeDescription
rule_id *stringRule ID

list_experiments

List A/B test experiments (ad studies) for the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

create_experiment

Create a new A/B test experiment (ad study).

ParameterTypeDescription
cells *stringJSON array of test cells: [{name, campaign_id}]
end_time *stringEnd time in ISO 8601 or Unix timestamp
name *stringExperiment name
start_time *stringStart time in ISO 8601 or Unix timestamp
account_idstringAd account ID to create the experiment in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
descriptionstringExperiment description
typestringStudy type

get_experiment

Get details of a specific experiment (ad study).

ParameterTypeDescription
experiment_id *stringExperiment (ad study) ID
fieldsstringComma-separated fields to return

update_experiment

Update an existing experiment (ad study).

ParameterTypeDescription
experiment_id *stringExperiment (ad study) ID
descriptionstringNew experiment description
namestringNew experiment name

get_experiment_results

Get results/cells of an experiment (ad study).

ParameterTypeDescription
experiment_id *stringExperiment (ad study) ID
fieldsstringComma-separated fields to return

send_conversion_event

Send a server-side conversion event via the Conversions API (pixel).

ParameterTypeDescription
events *stringJSON array of events: [{event_name, event_time, user_data, custom_data, action_source}]
test_event_codestringEvents 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.

ParameterTypeDescription
event_set_id *stringDataset ID for offline events (legacy parameter name retained)
events *stringJSON array of offline events
test_event_codestringEvents Manager test code; use to verify delivery as test events

list_offline_event_sets

List offline conversion data sets for the ad account.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results to return

create_offline_event_set

Create a new offline conversion data set.

ParameterTypeDescription
name *stringEvent set name
account_idstringAd 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.
descriptionstringEvent set description

list_budget_schedules

List budget schedules attached to a campaign or ad set. Returns paginated results.

ParameterTypeDescription
parent_id *stringCampaign or ad set ID that owns the budget schedules
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitintegerNumber of results (default 25)
parent_typestringType of parent object

create_budget_schedule

Create a budget schedule on a campaign or ad set.

ParameterTypeDescription
budget_value *integerUnsigned value interpreted according to budget_value_type (ABSOLUTE uses currency minor units)
budget_value_type *stringHow budget_value is applied
parent_id *stringCampaign or ad set ID that will own the budget schedule
time_end *integerSchedule end time as a Unix timestamp
time_start *integerSchedule start time as a Unix timestamp
parent_typestringType of parent object

update_budget_schedule

Update an existing budget schedule. Only provided fields will be modified.

ParameterTypeDescription
schedule_id *stringBudget schedule ID to update
budget_valueintegerNew unsigned value interpreted according to budget_value_type
budget_value_typestringHow budget_value is applied
time_endintegerNew end time as a Unix timestamp
time_startintegerNew start time as a Unix timestamp

delete_budget_schedule

Delete a budget schedule. This action is irreversible.

ParameterTypeDescription
schedule_id *stringBudget schedule ID to delete

list_rf_predictions

List reach & frequency predictions for the ad account. Returns paginated results.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber 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.

ParameterTypeDescription
budget *numberBudget in account currency cents
destination_id *stringDestination ID (e.g. Facebook Page ID)
frequency_cap *numberMaximum frequency cap per user
start_time *stringPrediction start time (ISO 8601 or Unix timestamp)
stop_time *stringPrediction stop time (ISO 8601 or Unix timestamp)
target_spec *stringJSON string of targeting specification
account_idstringAd 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.

ParameterTypeDescription
prediction_id *stringPrediction ID
fieldsstringComma-separated fields to return

delete_rf_prediction

Delete a reach & frequency prediction. This action is irreversible.

ParameterTypeDescription
prediction_id *stringPrediction ID to delete

list_block_lists

List publisher block lists for the ad account. Returns paginated results.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

create_block_list

Create a new publisher block list for the ad account.

ParameterTypeDescription
name *stringName for the block list
account_idstringAd 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.

ParameterTypeDescription
list_id *stringBlock list ID
urls *stringJSON array of URLs to block (e.g. '["example.com","bad-site.com"]')

remove_from_block_list

Remove publisher URLs from an existing block list.

ParameterTypeDescription
list_id *stringBlock list ID
urls *stringJSON array of URLs to remove (e.g. '["example.com"]')

delete_block_list

Delete a publisher block list. This action is irreversible.

ParameterTypeDescription
list_id *stringBlock list ID to delete

get_ad_account

Get details of the configured ad account including status, balance, currency, timezone, and spend info.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
fieldsstringComma-separated fields to return

list_ad_accounts

List all ad accounts accessible by the current user. Returns paginated results.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

update_ad_account

Update the configured ad account settings. Only provided fields will be modified.

ParameterTypeDescription
account_idstringAd account ID to update (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
namestringNew account name
spend_capstringAccount spend cap in currency cents (e.g. '100000' = $1000.00)
timezone_namestringNew 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.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_account_users

List users who have access to the ad account with their roles and permissions.

ParameterTypeDescription
account_idstringAd account ID to query (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_businesses

List all businesses accessible by the current user. Returns paginated results.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

get_business

Get details of a specific business by ID.

ParameterTypeDescription
business_id *stringBusiness ID
fieldsstringComma-separated fields to return

list_business_ad_accounts

List ad accounts owned by the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_business_users

List users of the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

add_business_user

Add a user to the configured business by email. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
email *stringEmail address of the user to add
role *stringRole for the new user

remove_business_user

Remove a user from the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
user_id *stringUser ID to remove from the business

list_business_pages

List Facebook Pages owned by the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_business_instagram_accounts

List Instagram accounts owned by the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

list_system_users

List system users of the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)

create_system_user

Create a new system user in the configured business. Requires META_BUSINESS_ID env var.

ParameterTypeDescription
name *stringName for the system user
role *stringRole 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.

ParameterTypeDescription
short_lived_token *stringShort-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.

ParameterTypeDescription
long_lived_token *stringLong-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.

ParameterTypeDescription
input_token *stringAccess 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.

ParameterTypeDescription
ad_reached_countries *stringComma-separated country codes where ads were shown (e.g. 'US,GB,KR')
search_terms *stringKeywords to search for in ads
ad_typestringAd type filter: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, etc.
afterstringPagination cursor for next page
fieldsstringComma-separated fields to return
limitnumberNumber of results (default 25)
order_bystringSort order for results