Meta Ads MCP Server for Cloudflare Workers
49 tools available in the Meta Ads MCP server. Each tool can be called by AI assistants to perform specific actions.
metaads_delete_audienceDelete a custom audience.
This permanently deletes the audience.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"audienceId"
],
"properties": {
"audienceId": {
"type": "string",
"description": "Audience ID to delete"
}
}
}metaads_list_ad_accountsList all ad accounts accessible to the authenticated user.
Returns a paginated list of ad accounts with their status, currency, and timezone.
Args:
Returns: List of ad accounts with id, name, status, currency, timezone, etc.
{
"type": "object",
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of accounts to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}metaads_get_ad_accountGet details for a specific ad account.
Args:
Returns: Ad account details including id, name, status, balance, currency, timezone, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID (e.g., \"act_123456789\" or \"123456789"
}
}
}metaads_list_adsList ads for an ad account.
Returns a paginated list of ads with their status, creative, and ad set.
Args:
Returns: List of ads with id, name, status, creative, ad set, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of ads to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"adSetId": {
"type": "string",
"description": "Filter by ad set ID"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"effectiveStatus": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by effective status"
}
}
}metaads_get_adGet details for a specific ad.
Args:
Returns: Ad details including id, name, status, creative, tracking specs, etc.
{
"type": "object",
"required": [
"adId"
],
"properties": {
"adId": {
"type": "string",
"description": "Ad ID"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metaads_create_adCreate a new ad.
Creates an ad with a creative linked to an ad set. Ads are created in PAUSED status by default.
Args:
Returns: The created ad with all fields.
{
"type": "object",
"required": [
"accountId",
"adSetId",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Ad name"
},
"adSetId": {
"type": "string",
"description": "Ad set ID"
},
"creative": {
"type": "object",
"description": "Creative specification as JSON object"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_update_adUpdate an existing ad.
Update ad settings such as name, status, or creative.
Args:
Returns: The updated ad with all fields.
{
"type": "object",
"required": [
"adId"
],
"properties": {
"adId": {
"type": "string",
"description": "Ad ID to update"
},
"name": {
"type": "string",
"description": "New ad name"
},
"creative": {
"type": "object",
"description": "New creative specification"
}
}
}metaads_delete_adDelete an ad.
This permanently deletes the ad. Use update with status='ARCHIVED' for soft delete.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"adId"
],
"properties": {
"adId": {
"type": "string",
"description": "Ad ID to delete"
}
}
}metaads_list_adsetsList ad sets for an ad account.
Returns a paginated list of ad sets with their targeting, budget, and optimization settings.
Args:
Returns: List of ad sets with id, name, status, targeting, budget, optimization, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of ad sets to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"campaignId": {
"type": "string",
"description": "Filter by campaign ID"
},
"effectiveStatus": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by effective status"
}
}
}metaads_get_adsetGet details for a specific ad set.
Args:
Returns: Ad set details including id, name, targeting, budget, optimization, schedule, etc.
{
"type": "object",
"required": [
"adSetId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"adSetId": {
"type": "string",
"description": "Ad set ID"
}
}
}metaads_upload_imageUpload an ad image.
Uploads an image to the ad account's image library. The returned hash can be used when creating ad creatives.
Args:
Returns: The uploaded image with hash, url, dimensions, etc.
{
"type": "object",
"required": [
"accountId",
"imageData"
],
"properties": {
"name": {
"type": "string",
"description": "Image name"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"imageData": {
"type": "string",
"description": "Base64 encoded image data"
}
}
}metaads_create_adsetCreate a new ad set.
Creates an ad set with targeting, budget, and optimization settings. Ad sets are created in PAUSED status by default.
Args:
Returns: The created ad set with all fields.
{
"type": "object",
"required": [
"accountId",
"campaignId",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Ad set name"
},
"endTime": {
"type": "string",
"description": "End time (ISO 8601)"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"bidAmount": {
"type": "integer",
"description": "Bid amount in cents"
},
"startTime": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"targeting": {
"type": "object",
"description": "Targeting specification as JSON object"
},
"campaignId": {
"type": "string",
"description": "Campaign ID"
},
"dailyBudget": {
"type": "integer",
"description": "Daily budget in cents"
},
"lifetimeBudget": {
"type": "integer",
"description": "Lifetime budget in cents"
}
}
}metaads_update_adsetUpdate an existing ad set.
Update ad set settings such as name, status, targeting, budget, or optimization.
Args:
Returns: The updated ad set with all fields.
{
"type": "object",
"required": [
"adSetId"
],
"properties": {
"name": {
"type": "string",
"description": "New ad set name"
},
"adSetId": {
"type": "string",
"description": "Ad set ID to update"
},
"endTime": {
"type": "string",
"description": "New end time (ISO 8601)"
},
"bidAmount": {
"type": "integer",
"description": "New bid amount in cents"
},
"startTime": {
"type": "string",
"description": "New start time (ISO 8601)"
},
"targeting": {
"type": "object",
"description": "New targeting specification"
},
"dailyBudget": {
"type": "integer",
"description": "New daily budget in cents"
},
"lifetimeBudget": {
"type": "integer",
"description": "New lifetime budget in cents"
}
}
}metaads_delete_adsetDelete an ad set.
This permanently deletes the ad set. Use update with status='ARCHIVED' for soft delete.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"adSetId"
],
"properties": {
"adSetId": {
"type": "string",
"description": "Ad set ID to delete"
}
}
}metaads_list_audiencesList custom audiences for an ad account.
Returns a paginated list of custom audiences including website, app, and customer list audiences.
Args:
Returns: List of audiences with id, name, subtype, approximate size, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of audiences to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_get_audienceGet details for a specific custom audience.
Args:
Returns: Audience details including name, subtype, size, data source, delivery status, etc.
{
"type": "object",
"required": [
"audienceId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"audienceId": {
"type": "string",
"description": "Audience ID"
}
}
}metaads_create_audienceCreate a new custom audience.
Creates a custom audience that can be used for ad targeting.
Subtypes:
Args:
Returns: The created audience with all fields.
{
"type": "object",
"required": [
"accountId",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Audience name"
},
"rule": {
"type": "string",
"description": "JSON rule for website audiences"
},
"pixelId": {
"type": "string",
"description": "Pixel ID for website audiences"
},
"prefill": {
"type": "boolean",
"description": "Prefill with historical data"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"description": {
"type": "string",
"description": "Audience description"
},
"retentionDays": {
"type": "integer",
"maximum": 180,
"minimum": 1,
"description": "Retention days"
},
"customerFileSource": {
"enum": [
"USER_PROVIDED_ONLY",
"PARTNER_PROVIDED_ONLY",
"BOTH_USER_AND_PARTNER_PROVIDED",
""
],
"type": "string",
"description": "Customer file source"
}
}
}metaads_update_audienceUpdate an existing custom audience.
Args:
Returns: The updated audience with all fields.
{
"type": "object",
"required": [
"audienceId"
],
"properties": {
"name": {
"type": "string",
"description": "New audience name"
},
"audienceId": {
"type": "string",
"description": "Audience ID to update"
},
"optOutLink": {
"type": "string",
"description": "Privacy opt-out link"
},
"description": {
"type": "string",
"description": "New description"
}
}
}metaads_add_users_to_audienceAdd users to a custom audience.
Adds users to a CUSTOM subtype audience using hashed identifiers.
Schema types:
Args:
Example: schema: ['EMAIL_SHA256', 'PHONE_SHA256'] data: [['hashed_email1', 'hashed_phone1'], ['hashed_email2', 'hashed_phone2']]
Returns: Result with audience_id, num_received, num_invalid_entries.
{
"type": "object",
"required": [
"audienceId",
"schema",
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of user data arrays"
},
"schema": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of identifier types"
},
"audienceId": {
"type": "string",
"description": "Audience ID"
}
}
}metaads_remove_users_from_audienceRemove users from a custom audience.
Removes users from a CUSTOM subtype audience.
Args:
Returns: Result with audience_id, num_received, num_invalid_entries.
{
"type": "object",
"required": [
"audienceId",
"schema",
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of user data arrays"
},
"schema": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of identifier types"
},
"audienceId": {
"type": "string",
"description": "Audience ID"
}
}
}metaads_list_businessesList businesses accessible to the authenticated user.
Returns a paginated list of Business Manager accounts.
Args:
Returns: List of businesses with id, name, verification_status, etc.
{
"type": "object",
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of businesses to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metaads_get_businessGet details for a specific business.
Args:
Returns: Business details including name, created_time, verification_status, primary_page, etc.
{
"type": "object",
"required": [
"businessId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"businessId": {
"type": "string",
"description": "Business ID"
}
}
}metaads_list_business_ad_accountsList ad accounts owned by a business.
Returns a paginated list of ad accounts that belong to the specified business.
Args:
Returns: List of ad accounts with id, name, status, currency, etc.
{
"type": "object",
"required": [
"businessId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of ad accounts to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"businessId": {
"type": "string",
"description": "Business ID"
}
}
}metaads_list_campaignsList campaigns for an ad account.
Returns a paginated list of campaigns with their status, objective, and budget.
Args:
Returns: List of campaigns with id, name, objective, status, budget, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of campaigns to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"effectiveStatus": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by effective status"
}
}
}metaads_get_campaignGet details for a specific campaign.
Args:
Returns: Campaign details including id, name, objective, status, budget, schedule, etc.
{
"type": "object",
"required": [
"campaignId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"campaignId": {
"type": "string",
"description": "Campaign ID"
}
}
}metaads_get_creativeGet details for a specific ad creative.
Args:
Returns: Creative details including object_story_spec, asset_feed_spec, etc.
{
"type": "object",
"required": [
"creativeId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"creativeId": {
"type": "string",
"description": "Creative ID"
}
}
}metaads_create_campaignCreate a new campaign.
Creates a new advertising campaign with the specified objective and settings. Campaigns are created in PAUSED status by default for review before activation.
Args:
Returns: The created campaign with all fields.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"name": {
"type": "string",
"description": "Campaign name"
},
"spendCap": {
"type": "integer",
"description": "Spend cap in cents"
},
"stopTime": {
"type": "string",
"description": "Stop time (ISO 8601)"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"startTime": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"buyingType": {
"enum": [
"AUCTION",
"RESERVED"
],
"type": "string",
"description": "Buying type"
},
"dailyBudget": {
"type": "integer",
"description": "Daily budget in cents"
},
"lifetimeBudget": {
"type": "integer",
"description": "Lifetime budget in cents"
},
"specialAdCategories": {
"type": "array",
"items": {
"type": "string"
},
"description": "Special ad categories"
}
}
}metaads_update_campaignUpdate an existing campaign.
Update campaign settings such as name, status, budget, or schedule.
Args:
Returns: The updated campaign with all fields.
{
"type": "object",
"required": [
"campaignId"
],
"properties": {
"name": {
"type": "string",
"description": "New campaign name"
},
"spendCap": {
"type": "integer",
"description": "New spend cap in cents"
},
"stopTime": {
"type": "string",
"description": "New stop time (ISO 8601)"
},
"startTime": {
"type": "string",
"description": "New start time (ISO 8601)"
},
"campaignId": {
"type": "string",
"description": "Campaign ID to update"
},
"dailyBudget": {
"type": "integer",
"description": "New daily budget in cents"
},
"lifetimeBudget": {
"type": "integer",
"description": "New lifetime budget in cents"
}
}
}metaads_delete_campaignDelete a campaign.
This permanently deletes the campaign. Use update with status='ARCHIVED' for soft delete.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"campaignId"
],
"properties": {
"campaignId": {
"type": "string",
"description": "Campaign ID to delete"
}
}
}metaads_list_catalogsList product catalogs for a business.
Returns a paginated list of product catalogs.
Args:
Returns: List of catalogs with id, name, vertical, product_count, etc.
{
"type": "object",
"required": [
"businessId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of catalogs to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"businessId": {
"type": "string",
"description": "Business ID"
}
}
}metaads_get_catalogGet details for a specific product catalog.
Args:
Returns: Catalog details including name, vertical, product_count, feed_count, etc.
{
"type": "object",
"required": [
"catalogId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"catalogId": {
"type": "string",
"description": "Catalog ID"
}
}
}metaads_list_product_setsList product sets for a catalog.
Product sets are subsets of products used for dynamic ads targeting.
Args:
Returns: List of product sets with id, name, product_count, filter, etc.
{
"type": "object",
"required": [
"catalogId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of product sets to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"catalogId": {
"type": "string",
"description": "Catalog ID"
}
}
}metaads_list_creativesList ad creatives for an ad account.
Returns a paginated list of creatives with their specifications.
Args:
Returns: List of creatives with id, name, object_story_spec, status, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of creatives to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_create_creativeCreate a new ad creative.
Creates a standalone creative that can be used by multiple ads.
Args:
Returns: The created creative with all fields.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"name": {
"type": "string",
"description": "Creative name"
},
"urlTags": {
"type": "string",
"description": "URL parameters to append"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"assetFeedSpec": {
"type": "object",
"description": "Asset feed specification"
},
"objectStorySpec": {
"type": "object",
"description": "Object story specification"
},
"usePageActorOverride": {
"type": "boolean",
"description": "Use page as actor"
}
}
}metaads_list_imagesList ad images for an ad account.
Returns a paginated list of uploaded images with their hashes and URLs.
Args:
Returns: List of images with hash, url, dimensions, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of images to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"hashes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by image hashes"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_list_videosList ad videos for an ad account.
Returns a paginated list of uploaded videos.
Args:
Returns: List of videos with id, title, description, thumbnail, status, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of videos to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_get_videoGet details for a specific ad video.
Args:
Returns: Video details including title, description, thumbnail, status, length, etc.
{
"type": "object",
"required": [
"videoId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"videoId": {
"type": "string",
"description": "Video ID"
}
}
}metaads_get_account_insightsGet insights (performance metrics) for an ad account.
Returns performance data like impressions, clicks, spend, conversions, etc.
Args:
Returns: Array of insights with requested metrics and breakdowns.
{
"type": "object",
"properties": {
"level": {
"enum": [
"account",
"campaign",
"adset",
"ad"
],
"type": "string",
"description": "Aggregation level"
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Maximum results"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Metrics to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"breakdowns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Dimensions to break down by"
},
"timeIncrement": {
"type": "string",
"description": "Time increment for breakdown"
},
"actionBreakdowns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Action breakdowns"
},
"attributionWindows": {
"type": "array",
"items": {
"type": "string"
},
"description": "Attribution windows"
}
}
}metaads_get_campaign_insightsGet insights (performance metrics) for a specific campaign.
Args:
Returns: Array of insights for the campaign.
{
"type": "object",
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Metrics to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"breakdowns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Breakdowns"
},
"campaignId": {
"type": "string",
"description": "Campaign ID"
},
"timeIncrement": {
"type": "string",
"description": "Time increment"
}
}
}metaads_get_adset_insightsGet insights (performance metrics) for a specific ad set.
Args:
Returns: Array of insights for the ad set.
{
"type": "object",
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Metrics to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"adSetId": {
"type": "string",
"description": "Ad set ID"
},
"breakdowns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Breakdowns"
},
"timeIncrement": {
"type": "string",
"description": "Time increment"
}
}
}metaads_get_ad_insightsGet insights (performance metrics) for a specific ad.
Args:
Returns: Array of insights for the ad.
{
"type": "object",
"properties": {
"adId": {
"type": "string",
"description": "Ad ID"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Metrics to return"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"breakdowns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Breakdowns"
},
"timeIncrement": {
"type": "string",
"description": "Time increment"
}
}
}metaads_list_pixelsList Meta Pixels for an ad account.
Returns a paginated list of pixels with their configuration and status.
Args:
Returns: List of pixels with id, name, code, last_fired_time, etc.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"after": {
"type": "string",
"description": "Pagination cursor"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Number of pixels to return"
},
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_get_pixelGet details for a specific Meta Pixel.
Args:
Returns: Pixel details including name, code, settings, last_fired_time, owner, etc.
{
"type": "object",
"required": [
"pixelId"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated list of fields"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"pixelId": {
"type": "string",
"description": "Pixel ID"
}
}
}metaads_create_pixelCreate a new Meta Pixel.
Creates a new pixel for tracking website conversions.
Args:
Returns: The created pixel with id, name, and installation code.
{
"type": "object",
"required": [
"accountId",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Pixel name"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_search_targetingSearch for targeting options like interests, behaviors, demographics.
Search for available targeting options that can be used in ad sets.
Types:
Args:
Returns: List of targeting options with id, name, type, and audience size estimates.
{
"type": "object",
"required": [
"accountId",
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Search query"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_get_targeting_categoriesBrowse available targeting categories.
Get a list of available targeting categories for a given type.
Args:
Returns: List of targeting categories with id, name, and type.
{
"type": "object",
"required": [
"accountId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
}
}
}metaads_get_delivery_estimateGet estimated delivery for a targeting specification.
Estimate the potential reach for a given targeting configuration.
Args:
Returns: Delivery estimate with estimated daily reach, impressions, and audience size.
{
"type": "object",
"required": [
"accountId",
"targeting",
"optimizationGoal"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"targeting": {
"type": "object",
"description": "Targeting specification"
},
"optimizationGoal": {
"type": "string",
"description": "Optimization goal"
}
}
}metaads_get_reach_frequencyGet a reach and frequency prediction.
Retrieve an existing reach and frequency prediction.
Args:
Returns: Reach and frequency prediction with curves and estimates.
{
"type": "object",
"required": [
"accountId",
"predictionId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"predictionId": {
"type": "string",
"description": "Prediction ID"
}
}
}metaads_create_reach_frequencyCreate a reach and frequency prediction.
Create a new reach and frequency prediction for planning purposes.
Args:
Returns: Created prediction with reach and frequency curves.
{
"type": "object",
"required": [
"accountId",
"targetSpec",
"startTime",
"stopTime",
"objective"
],
"properties": {
"reach": {
"type": "integer",
"description": "Target reach"
},
"budget": {
"type": "integer",
"description": "Budget in cents"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"stopTime": {
"type": "number",
"description": "Stop time (Unix timestamp)"
},
"accountId": {
"type": "string",
"description": "Ad account ID"
},
"objective": {
"type": "string",
"description": "Campaign objective"
},
"startTime": {
"type": "number",
"description": "Start time (Unix timestamp)"
},
"targetSpec": {
"type": "object",
"description": "Targeting specification"
},
"frequencyCap": {
"type": "integer",
"description": "Frequency cap"
}
}
}