Codex + KADSOne API for 12 advertising networks

Build ad tools with Codex.

Turn a reporting idea into a working ad tool. KADS gives Codex one API for 12 ad platforms, with connected account data, discoverable tools, and campaign management tools.

  • One connection for 12 ad platforms
  • Build against real accounts and API schemas
  • Prepare launches without guessing the inputs
KADS lightning-bolt mascot using a laptop with the Codex logo on its lid, surrounded by advertising platforms
Meta
Google Ads
TikTok
Snapchat
Pinterest
LinkedIn
Reddit
Amazon Ads
X
ChatGPT Ads
Codex + KADS

Connect Codex to KADS

Add your KADS MCP server to Codex. Use an environment variable for your token, or sign in through the browser if KADS has OAuth enabled.

1ConnectDeveloper setup

Connect KADS to Codex

Connect your ad accounts, open MCP, and copy the server URL. Create a workspace token for your connection.

Connect Codex to KADS
# Set these example values in the environment that runs Codex.
export KADS_ORIGIN="https://YOUR_KADS_ORIGIN"
export KADS_MCP_TOKEN="YOUR_KADS_TOKEN"

codex mcp add kads \
  --url "$KADS_ORIGIN/api/mcp" \
  --bearer-token-env-var KADS_MCP_TOKEN

Replace the example origin and token with your own values. Find the endpoint and authentication options in the MCP connection guide.

Read the connection guide
2AskExample request

Then just ask Codex

Ask about the accounts you connected. Your agent can compare results, explain a trend, or build a campaign.

Build a Google Ads performance report for my account. Find the KADS reporting tools, check the response fields, and use the last 14 days of data.

I’ll inspect the account and reporting tools, fetch the selected period, and use the returned fields to build the report.

via KADSMetaGoogle Ads
List my ad accountsCheck campaign performanceUpdate a campaign
  1. 1

    Get your KADS connection

    Connect your ad accounts, open MCP, and copy the server URL. Create a workspace token for your connection.

  2. 2

    Set your token

    Set KADS_MCP_TOKEN in the environment that launches Codex.

  3. 3

    Add the MCP server

    Run the command below. For OAuth, omit the bearer-token option and then run codex mcp login kads.

  4. 4

    Start building

    Ask Codex to list accounts, build a report, or add campaign tools to your project.

Connect Codex once. Reach 12 ad platforms.

KADS handles the separate advertising APIs. Your agent gets one way to find accounts, pull reports, and prepare campaign changes.

Codex
KADSONE API · REST + MCP
MetaGoogle AdsTikTokSnapchatPinterestLinkedInRedditAmazon AdsX

Add another ad platform without building another agent integration.

What changes when Codex has your ad data?

Move past generic advertising advice. Work with the campaigns, budgets, and results in your own accounts.

WorkflowIndividual integrationsWith KADS
Provider setupBuild a connection for each networkUse one remote MCP endpoint
Development dataWork from sample reports and copied examplesInspect your connected accounts and tool schemas
Campaign updatesHandle each provider’s changes separatelyUse one set of campaign tools

Put Codex to work on your ads.

Reporting, campaign creation, and account management through one connection.

Fewer dashboards to check

Give your agent one connection to your ad accounts. Ask about a single campaign or compare results across clients and platforms.

Reports without the exports

Pull spend, results, and campaign trends directly from your connected accounts. Get answers without uploading another spreadsheet.

From brief to campaign

Give your agent the goal, budget, and creative. Build the campaign from your brief through KADS.

Campaign updates from one conversation

Adjust budgets, update campaigns, and keep a record of the results across your connected accounts.

Built for each ad platform

Build with the targeting, campaign formats, and creative tools for each ad platform through one connection.

Keep clients organised

Group client accounts in your workspace and give your agent the context it needs for each campaign.

FROM REPORT TO CAMPAIGN

Build the product. KADS connects the ad platforms.

Reporting views, campaign tools, internal apps—give Codex the advertising API it needs to make them work.

  • Codex with remote MCP support.
  • Your KADS MCP URL and workspace.
  • KADS_MCP_TOKEN in your launch environment, or configured KADS OAuth.
Explore the API
THE KADS WORKFLOW
01  Connect your ad accounts
02  Find campaign tools
03  Pull campaigns and reports
04  Build a campaign
05  Update budgets and creatives
06  View the results
01

Add your ad accounts

Register KADS in Codex and give it access to the workspace you want to build with.

02

Work with real inputs

Discover current tool schemas and account reports instead of coding against assumed response shapes.

03

Add campaign controls

Use KADS campaign tools to create campaigns, update budgets, and track the results.

What will you ask Codex first?

Start with a question you already spend time answering each week.

Find what needs attention

“Compare my Meta and Google Ads campaigns over the last 7 days. Flag rising acquisition costs and explain what changed.”

Build your next campaign

“Build a campaign for our new product using our launch brief, budget, and creative.”

Update a campaign budget

“Find my strongest campaigns and adjust their budgets based on their results.”

Build a client-ready report

“Summarise the last month across my connected accounts. Break out spend and results by platform, with next steps for each account.”

Your ads run everywhere. Your agent connects here.

Connect the platforms you use today and add more as you grow.

Meta
Google Ads
TikTok
Snapchat
Pinterest
LinkedIn
Reddit
Amazon Ads
X
ChatGPT Ads
Apple Ads
Outbrain

Use more than one agent?

Keep your ad accounts in KADS and connect another tool whenever you need it.

Questions about Codex + KADS

Does KADS support Codex OAuth login?

Yes, when MCP OAuth is enabled in KADS. Add the server with codex mcp add kads --url and your MCP address, then run codex mcp login kads. You can also use a bearer token stored in an environment variable.

Which ad platforms can I connect?

Meta, Google Ads, TikTok, Snapchat, Pinterest, LinkedIn, Reddit, Amazon Ads, X, ChatGPT Ads, Apple Ads, and Outbrain.

Can the agent change my campaigns?

Yes. Your agent can build campaigns, update budgets, and manage targeting and creatives through the KADS campaign tools.

Can I connect more than one agent?

Yes. Connect multiple agents to the same KADS workspace. They can work with your connected accounts, reports and campaign tools through REST or MCP.