What is the Meta Marketing API?
The Meta Marketing API is Meta's programming interface for creating and managing campaigns, ad sets and ads, and for reading their results. Developers use it to build ad tools, reports and automations.
Also called Meta Ads API, Facebook Ads API, Facebook Marketing API
Why it matters.
- Lets software read results and change ads without clicking through Ads Manager.
- Powers most third-party ad tools.
- Requires a Meta developer app and an access token, so building on it takes real setup.
Common mistakes.
- Building against the API when you only need results and proposed changes.
- Comparing platform-reported conversions with the revenue you were actually paid.
- Giving a script write access with no approval step before spend changes.
Measure it well.
With DATALYR's MCP server, Claude or Codex reads your results, and Claude, ChatGPT, Claude Code or Codex can propose Meta campaigns, ad sets and ads, paused for you to approve, with no API build.
See the Meta Ads MCP →Questions, answered.
Contact usAnother name for the Meta Marketing API: Meta's interface for managing campaigns and reading ad results from code.
No. An agent can work through DATALYR's MCP server instead of calling the API itself.
No. The Marketing API manages campaigns and reads results. The Conversions API sends conversions to Meta.
Related terms.
- MCP serverAn MCP server is a connection that lets an AI assistant such as Claude or ChatGPT use another product's data and tools.
- Meta Conversions APIMeta's server-to-server channel for sending conversions, used alongside the pixel.
- Conversion trackingConversion tracking records when a visitor completes a goal you care about, such as a purchase, sign-up or lead, and ties it back to the ad or channel that brought them.
- Agentic analyticsAgentic analytics is an AI agent that queries your data itself and answers in plain English, instead of waiting for someone to build a dashboard.

See what really drives revenue.
Real-time attribution, analytics and conversions for every channel, campaign and ad, ready for your team and your agents.