Ad platform APIs for agents
PubNio connects 9 ad providers behind one API and one MCP server. It reads daily spend on each and creates campaign plans paused; activating a campaign and changing a budget are human-only, so MCP refuses them and links the web app page where a person does them.
Providers
| Provider | Operation kinds | Pages | MCP |
|---|---|---|---|
| Meta Ads | 12 of 12 kinds | Create a campaign, Read spend | Meta MCP server |
| Google Ads | 10 of 12 kinds | Create a campaign, Read spend | Google MCP server |
| OpenAI Ads | 10 of 12 kinds | Create a campaign, Read spend | OpenAI MCP server |
| TikTok Ads | 9 of 12 kinds | Create a campaign, Read spend | TikTok MCP server |
| Amazon Ads | 9 of 12 kinds | Create a campaign, Read spend | Amazon MCP server |
| LinkedIn Ads | 8 of 12 kinds | Read spend | LinkedIn MCP server |
| Snapchat Ads | 10 of 12 kinds | Create a campaign, Read spend | Snapchat MCP server |
| Reddit Ads | 9 of 12 kinds | Create a campaign, Read spend | Reddit MCP server |
| Pinterest Ads | 10 of 12 kinds | Read spend | Pinterest MCP server |
Connect your agent
Sign in with OAuth when the agent asks. Each provider's MCP page shows the calls an agent makes there.
claude mcp add --transport http pubnio https://pubnio.com/mcp
codex mcp add pubnio --url https://pubnio.com/mcp && codex mcp login pubnio
Spend controls
ads.createCampaignPlancreates every level paused.- Activating a campaign takes
confirmation: "activate_spend"from a workspace owner's signed-in session in the web app; an API key or an MCP session gets 403human_actor_required. It also resumes the campaign's paused ad groups and ads under the same checks, and endspartialwhen one stays paused. Resuming an ad group or ad later is its own owner-only operation,ads.resumeAdGrouporads.resumeAd, with the same checks and the same refusal over MCP; pausing stays open to an agent. - MCP never runs a human-only operation, whatever the credential: an agent connected to the hosted MCP server through OAuth is refused like an API key, and the problem's
nextActionlinks to the web app page where the owner does it. ads.resumeAdGroupandads.resumeAdare human-only: an agent over MCP, by OAuth session or API key, getshuman_actor_requiredand cannot resume spend. The problem'snextActionlinks to the web console.ads.setAdGroupStatusandads.setAdStatustake onlypausedorarchived, so an agent can still stop spend.- An agent turns the kill switch on with
ads.enableKillSwitch. Clearing it isads.clearKillSwitch, human-only like resuming, and it never resumes spend. - Activating a campaign, ad group, or ad, or raising a budget, needs a monthly cap on the account's spend policy, or it fails with
ad-spend-forbiddenandmonthly_cap_required(itsnextActionnamesads.updateSpendPolicy), and it fails withad-kill-switch-activewhile the kill switch is on; lowering a budget needs neither. - A budget increase must fit the per-campaign maximum, the daily cap, and the monthly cap, counted as 30.4 days of daily budgets with queued increases at their new amount; a decrease skips those checks.
ads.enableKillSwitchmarks the account's active, activating, and pending-review campaigns, ad groups, and ads paused in PubNio's records, queues a retryable provider pause for each (one per campaign), and turns away activations, resumes, and budget increases until it is cleared. A level the provider cannot pause is counted inproviderPauses.unsupportedand must be paused in the provider's ads manager. A sync cannot restore an active status while the switch is on. A member, an MCP session, or anads_managekey may turn it on; clearing it is the separateads.clearKillSwitch, which only a signed-in owner may do in the web app, and it never resumes spend.- Insights and writes that can start or raise spend need a plan with ads included; pause, archive, spend caps, and the kill switch work on every plan.

