Skip to main content
Glama
hashcott

Meta Ads MCP Server

by hashcott

Get Multiple Meta Ad Sets by IDs

meta_ads_get_adsets_by_ids
Read-onlyIdempotent

Batch lookup of Meta ad sets by their IDs. Retrieves specified fields such as status, budget, targeting, and optimization goal in one API call.

Instructions

Retrieve information for multiple Meta ad sets in a single API call (batch lookup).

Efficient when you need data for several ad sets at once.

Args:

  • adset_ids (string[]): List of ad set IDs to retrieve, e.g., ['23843211234567', '23843211234568']

  • fields (string[]): Fields per ad set. Common: id, name, account_id, campaign_id, status, effective_status, daily_budget, lifetime_budget, budget_remaining, bid_amount, bid_strategy, billing_event, optimization_goal, targeting, start_time, end_time, created_time, updated_time, pacing_type, destination_type

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

Returns: Object where keys are ad set IDs and values are the corresponding ad set details.

Examples:

  • Use when: "Get details for ad sets 23843211234567, 23843211234568, and 23843211234569"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adset_idsYesList of ad set IDs, e.g., ['23843211234567', '23843211234568']
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