How to connect Google & Meta Ads to the Hermes agent
Two ways, both under ten minutes: the Composio Connect CLI or a Connect MCP config. Below are the exact commands, the OAuth steps, and what Hermes can do once your accounts are wired up.
Built by our community of 2,000 marketers
Free skills and prompts for paid ads and SEO
Templates for Claude, ChatGPT and Perplexity.
Clients we work withClients we
work with








THE QUICK VERSION
Hermes connects to Google Ads and Meta through Composio Connect. Install the Composio CLI, ask Hermes to authenticate, then ask it to connect your ad account and authorize the OAuth prompt. That’s it.
Composio connects through the official Google Ads API and Meta Marketing API over OAuth — the sanctioned path, so connecting won’t get your account flagged. Here’s why that matters for account safety.
What Hermes is, and what you need first
Hermes is a 24/7 autonomous AI agent that runs on your own computer or server. It remembers what it learns and connects to outside apps — Google Ads, Meta, Slack, Notion and hundreds more — through Composio Connect, the layer that handles authentication and the actual API calls. Once your ad accounts are connected, Hermes can pull performance data, reallocate budget, adjust targeting, pause underperformers, and generate fresh creative on your behalf.
Before you start, have these ready:
- Hermes installed on your computer or server.
- A free Composio account at dashboard.composio.dev.
- Admin access to the Google Ads or Meta Ads account you want to connect (you’ll authorize it via OAuth).
Method 1 · Fastest
Connect with the Composio Connect CLI
One install command and a couple of chat prompts. Best for connecting from your own machine.
Install the Composio CLI
Run this in your terminal:
curl -fsSL https://composio.dev/install | bash
Or paste https://composio.dev/hermes straight into your Hermes chat box and it will install automatically.
Authenticate Hermes with Composio
Once the CLI finishes installing, ask Hermes in chat to authenticate with Composio — for example: “Authenticate with Composio.” It handles the handshake for you.
Connect Google Ads or Meta Ads
Ask Hermes to connect the account — or simply ask it to do any ad task and it will connect on demand:
Connect my Google Ads account. Connect my Meta Ads account.
Hermes opens an OAuth prompt. Sign in on Google’s or Meta’s own screen and authorize access — your password never touches the agent.

Confirm, then repeat for the other platform
The connection goes live immediately. Run step 3 again for the second platform so Hermes manages Google Ads and Meta from one place.
Method 2 · Persistent config
Connect with Composio Connect MCP
Prefer a reproducible config — handy for servers and headless deployments? Wire Composio in through your Hermes config file instead.
Grab your Composio credentials
Open dashboard.composio.dev and copy your Connect MCP URL and API key.

Open the Hermes config
nano ~/.hermes/config.yaml
Add the Composio MCP server block
Paste this under your config, dropping in your own API key:
mcp_servers:
composio:
url: "https://connect.composio.dev/mcp"
headers:
x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
connect_timeout: 60
timeout: 180Save with Ctrl + O, Enter, then exit with Ctrl + X.
Restart Hermes and connect
Restart Hermes so it picks up the new config, then ask it to connect Google Ads or Meta Ads. It prompts you to authenticate and authorize — same OAuth flow as the CLI method.
Free SEO/GEO audit
- Surface technical SEO issues
- Spot quick wins
- Find duplicate and thin pages
Free · no credit card · instant
After you connect
What Hermes can do once Google & Meta are connected


On Google Ads
- ✓Create and manage customer lists
- ✓Add or remove contacts from audience segments
- ✓Retrieve campaign details by ID or name
- ✓Create, update, or remove campaigns and ad groups
- ✓Run Google Ads Query Language (GAQL) searches
- ✓Access every customer account available to you

On Meta Ads
- ✓Automated campaign and ad creation
- ✓Real-time ad performance insights
- ✓Audience management and targeting
- ✓Campaign control and optimization
- ✓Creative asset automation
- ✓Reallocate budget between ad sets
One thing to set up before you let it run
Give Hermes write access to your ad accounts and it can spend money — so keep a human-approval step on budget and bid changes, and review any AI-generated creative against ad policy before it publishes. That’s the difference between an agent that helps and one that gets your account restricted. More on staying ban-safe here.
Don’t want to run an agent yourself?
Hermes is great if you want to self-host. Ryze is the managed version — same official-API safety, no server to maintain, and a human-approval gate built in.
- ✓Official Google + Meta APIs via OAuth
- ✓Nothing to install or keep running
- ✓Approval gate on every budget change
2,000+
Marketers
$500M+
Ad spend
23
Countries
1,000+ marketers use Ryze





Automating hundreds of agencies





★★★★★4.9/5

