Skip to main content
Glama
hashcott

Meta Ads MCP Server

by hashcott

Get Meta Campaign by ID

meta_ads_get_campaign_by_id
Read-onlyIdempotent

Retrieve detailed information about a specific Meta ad campaign by providing its campaign ID. Get fields like objective, status, budget, and more.

Instructions

Retrieve detailed information about a specific Meta ad campaign.

Args:

  • campaign_id (string): Campaign ID, e.g., '23843xxxxx'

  • fields (string[]): Fields to retrieve. Available: id, name, account_id, objective, status, effective_status, configured_status, daily_budget, lifetime_budget, budget_remaining, spend_cap, bid_strategy, buying_type, created_time, updated_time, start_time, stop_time, special_ad_categories, pacing_type, promoted_object, issues_info, recommendations

  • date_format (string): Date format: 'U' for Unix timestamp, 'Y-m-d H:i:s' for MySQL datetime, default: ISO 8601

Returns: Object with the requested campaign fields.

Examples:

  • Use when: "Get details for campaign 23843xxxxx"

  • Use when: "What is the objective and status of my campaign?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesCampaign ID, e.g., '23843xxxxx'
fieldsNoList of specific fields to retrieve. If omitted, default fields are returned
date_formatNoFormat for date fields in response. 'U' = Unix timestamp (seconds), 'Y-m-d H:i:s' = MySQL datetime. Default: ISO 8601

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hashcott/meta-ads-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server