Say I want to know how much my ad campaigns spent yesterday. Usually that means opening the ad platform, setting the dates, finding the right campaigns and checking the numbers.
What I’d rather do is type: “Show me yesterday’s spend by campaign and compare it with the day before.”
To answer using real data, the AI needs access to the ad account and a tool that can retrieve the statistics.
That’s where APIs and MCP come in. Here’s what each one does and how they can fit into day-to-day work.
An API lets software work with a service
An API is an interface that lets one program communicate with another.
An advertising platform’s API might let you retrieve reports, create campaigns or change budgets. The available actions depend on the platform and the permissions you’ve been granted.
Instead of clicking buttons in the dashboard, a program sends a request: “Return the spend for these campaigns on this date.” The service processes it and sends back the data.
You can then save it to a spreadsheet, use it in calculations or turn it into a report.
None of this requires AI. A regular script can fetch statistics every morning and add them to Google Sheets using rules you’ve defined in advance.
What MCP adds
MCP — Model Context Protocol — defines a common way to connect external tools and data to AI applications.
For example, an MCP server can give an application tools for listing ad accounts, finding campaigns or retrieving reports. Each tool has a description and the parameters needed to call it.
The way I think about the difference is:
An API lets software work with a particular service. MCP helps make those capabilities available to an AI application in a standard format.
The MCP server may itself call the advertising platform’s API. So a single task will often involve both.
For the report, the process might look like this:
- I ask for yesterday’s spend by campaign.
- The AI selects an appropriate connected tool and supplies the parameters.
- The MCP server retrieves the data through the ad platform’s API.
- The AI uses the result to prepare an answer or a table.
That’s one possible setup. MCP can also provide access to local files, databases and other sources.
Can AI use an API without MCP?
Yes, provided it has the right tools, access and ability to run code.
For instance, an agent can write and run a script that calls an API and processes the response. MCP isn’t required.
MCP becomes convenient when the actions you need are already packaged as tools. The agent can see which operations are available, understand the parameters and use them to carry out a task.
But those operations depend on the particular MCP server. An API might support a hundred actions while the server exposes only a handful.
Having an MCP connection therefore doesn’t mean you can manage an entire ad account through it. First check what it actually supports.
Which approach fits your task?
I’d start by deciding how the automation should work.
If the task is identical every day — fetching spend each morning and recording it in a spreadsheet, for example — a regular API script may be enough. Define the data source, schedule, output format and what should happen when something fails.
If you want to ask different questions as you work, a ready-made MCP connection may be useful. Today you might ask for campaign spend, tomorrow for a country breakdown, then a comparison between periods. That only works if the connected tools support those requests.
You can combine the approaches. A script collects the numbers regularly, while AI helps analyse them and prepare conclusions.
MCP itself doesn’t run your reports every morning. Scheduled work needs a separate mechanism: a scheduler, an automation service or a feature in the application.
Where I’d start in practice
With one small task whose result is easy to check.
For example:
Retrieve yesterday’s spend for all campaigns in one ad account and display it in a table.
There’s a clear source, a specific period and a result you can compare with the dashboard.
Before setting anything up, decide:
- which ad account to use;
- what “yesterday” means in that account’s time zone;
- which currency the spend should be in;
- which campaigns to include;
- where to save the result.
These sound like minor details. Without them, though, you can get a beautifully formatted table containing numbers from the wrong period or account.
I’d always check the first export manually. If the numbers don’t match, start with the date range, filters, currency and metric definitions.
Once that small process works correctly, you can expand it: more metrics, multiple accounts, period comparisons and recurring reports.
Where to look for existing connections
Some advertising platforms already have MCP solutions. These links are a starting point for exploring them.
Google Ads MCP is an open-source MCP server from Google. It provides tools for working with the Google Ads API. Google published the project and documents it officially; using it requires setup and authorization.
TikTok for Business MCP Server is TikTok’s solution for connecting AI tools to its advertising platform. The documentation describes its capabilities and connection options.
Meta Ads MCP is a page on Meta’s website. When checked for this article, it redirected to a login page, so its contents and access requirements couldn’t be confirmed.
You can give these links to an agent and ask it to review the documentation for your particular task.
A project link doesn’t connect anything on its own, though. You’ll need to complete the setup, authorize access and check that your chosen AI application supports the connection method.
It’s also worth checking who maintains the server. An official platform solution and a third-party project may differ in features, access requirements and how they handle data.
Reading reports and managing campaigns are different permissions
For a first reporting experiment, I’d stick to read-only access wherever the platform and connection allow it.
An agent doesn’t need permission to change budgets or pause campaigns just to retrieve spend.
If you later want it to make changes, define those rules separately: what it can suggest, what it can do on its own and when it needs confirmation.
Finding campaigns with rising CPA, preparing recommendations and changing budgets are three separate tasks. Keep that distinction clear during setup.
Connecting the account doesn’t make the analysis correct either. AI can miscalculate, confuse metrics or draw an overly confident conclusion from a small sample. Check both the numbers it retrieves and the conclusions it draws from them.
A prompt to get started
You can begin by asking for a plan. To carry out the setup, the agent will also need access to documentation and the ability to work with code or connections.
Help me work out how to retrieve advertising statistics
for my task.
Platform: [Meta / Google Ads / TikTok / other].
Application I’m using: [name].
Task: retrieve yesterday’s spend by campaign
for one ad account.
Output: a table with campaign ID, campaign name,
date, currency and spend.
Review the current official documentation.
If you can’t access it, tell me
and ask for the materials you need.
Compare suitable options: a direct API connection,
a ready-made MCP server or another connection method.
Recommend the simplest option for this task
and explain your choice in plain language.
Include:
— the access required and any limitations;
— parameters we need to clarify;
— setup steps;
— how to check the first export;
— what we’d need to run it on a schedule.
Don’t assume the connection is already configured.
Don’t ask me to send tokens or secret keys in chat.
For now, prepare a plan only.
Don’t change campaigns, budgets or account settings.
I’d start with a small report like this. It lets you understand the whole process, from connecting the source to checking the result. Then you can choose the next tasks that will save you manual work.
