Why Deploy Your Own Ad Agent?
You already use AI tools like ChatGPT or Claude to manage ads. But they have limits:- They shut off when you close the tab. Your agent stops working when you stop working.
- They don’t connect to your messaging apps. You can’t text your AI “pause that campaign” from WhatsApp at 10pm.
- They don’t remember context between sessions. Every new conversation starts from scratch.
- Your team can’t share access. One person’s AI session isn’t accessible to the rest of the team.
The end result: you (or your team, or your clients) message the agent on WhatsApp and say “show me last week’s Google Ads performance” or “create a Meta campaign for our spring sale” — and it just works.
What You Need Before Starting
[!NOTE] Time required: About 15 minutes from start to finish. You’ll need:
- A Hostinger account — hostinger.com (VPS plans start around $5/month)
- An ADSMCP account — adsmcp.ai/sign-up (free to start, 15 tool calls/month)
- A credit or debit card for Hostinger billing
- Your ad platform logins (Google Ads, Meta Business Manager, LinkedIn Campaign Manager, or TikTok Ads — whichever you use)
Step 1: Buy a Hostinger VPS with OpenClaw Pre-Installed
A VPS (Virtual Private Server — a computer in a data center that you rent by the month. It runs 24/7 and you access it over the internet.) is just a computer in the cloud that stays on all the time. Hostinger makes this easy because OpenClaw comes pre-installed — you don’t need to install anything manually. 1. Go to Hostinger’s OpenClaw VPS Page Visit the Hostinger VPS marketplace and look for the OpenClaw hosting option. 2. Choose a Plan Any plan works. For a single-brand or small agency setup, the entry-level plan is more than enough. OpenClaw is lightweight — it doesn’t need a powerful server.[!TIP] If you’re an agency managing 5+ client accounts, consider a mid-tier plan for extra headroom. But you can always upgrade later.3. Click Deploy OpenClaw is auto-selected as the application to install. Just click Deploy to continue.
Step 2: Configure Your Server
After clicking Deploy, Hostinger asks you to set some configuration values. This is where you connect ADSMCP. 1. Set Your Gateway Token Hostinger auto-generates anOPENCLAW_GATEWAY_TOKEN for you. This is your password to access the OpenClaw dashboard.
Copy this token and save it somewhere safe (a password manager, a note on your phone — anywhere you won’t lose it). You’ll need it to log in.
2. Generate Your ADSMCP API Key
In a new browser tab:
- Go to adsmcp.ai/keys
- Click Generate New Key
- Name it something like “Hostinger server”
- Copy the key — it starts with
sk_live_and won’t be shown again
[!WARNING] Treat this API key like a password. Don’t share it publicly or paste it in chats. If compromised, revoke it from the ADSMCP dashboard and generate a new one.3. Enter Your API Keys in Hostinger Back in the Hostinger setup screen, you’ll see fields for API keys. You have two options: Option A — Use ADSMCP as your AI provider (recommended):
- Leave the
ANTHROPIC_API_KEY,OPENAI_API_KEY, and other AI keys empty - The ADSMCP plugin handles the AI model connection for you
- Paste your Anthropic or OpenAI API key in the appropriate field
- This gives you a separate AI model alongside ADSMCP’s ad tools
WHATSAPP_NUMBER field. You can also set this up later.
5. Complete the Purchase and Deploy
Review your settings and click Deploy. Hostinger will set up your server with OpenClaw pre-installed. This takes 1–2 minutes.
When the status shows Running, your server is live.
Step 3: Access Your OpenClaw Dashboard
1. Find Your Server Address In Hostinger’s Docker Manager (or the Overview section), you’ll see your server’s IP address and port number. Your dashboard URL looks like:http://145.223.xxx.xxx:3000
2. Log In
Open that URL in your browser. Enter the OPENCLAW_GATEWAY_TOKEN you saved earlier and click Login.
You’re now inside the OpenClaw control panel — this is where you manage channels, view conversations, and monitor your agent.
Step 4: Install the ADSMCP Plugin
This is the step that turns your OpenClaw server into an advertising agent. You’ll connect to your server via a terminal (A terminal is a text-based interface for talking to a computer. You type commands and the computer responds. Think of it like texting your server.) and run a few commands. 1. Open the Terminal In Hostinger’s hPanel, find the Terminal or SSH Access option for your VPS. Click to open it.[!NOTE] If you’ve never used a terminal before — don’t worry. You’ll copy and paste 4 commands. That’s it.2. Install the ADSMCP Plugin Copy and paste this command, then press Enter:
sk_live_your_token_here with the API key you generated in Step 2:
Step 5: Connect Your Ad Platforms
Your agent needs permission to access your ad accounts. This is a one-time setup done from your browser — not the terminal. 1. Open the Connections Page Go to adsmcp.ai/connections from any device with a browser (your laptop, phone, etc.). 2. Connect Your Platforms Click Connect next to each platform you use:- Google Ads — sign in with your Google account and select your ad account
- Meta Ads — sign in with Facebook and select your Business Manager
- Amazon Ads — sign in with Amazon and select your ad account
- ChatGPT Ads — paste your ChatGPT Ads API key to connect
- LinkedIn Ads — sign in with LinkedIn and select your ad account
- TikTok Ads — sign in with TikTok and authorize access
[!TIP] Your ad agent is live. It’s running 24/7 on your Hostinger server, connected to your ad platforms, and ready to work.
Step 6: Connect a Messaging Channel
This is what makes a self-hosted agent different from using ChatGPT or Claude in a browser. You can talk to your agent from WhatsApp, Telegram, Discord, or the web dashboard — whatever your team already uses.WhatsApp (Most Popular for Agencies)
1. Open the Channels Section In your OpenClaw dashboard (the browser URL from Step 3), navigate to Channels. 2. Scan the QR Code Click Show QR code next to WhatsApp. On your phone:- Open WhatsApp → Settings → Linked Devices
- Tap Link a Device
- Scan the QR code on your screen
[!TIP] If the connection fails with a “status=515” error, go to Settings → Config in the dashboard, click Update, then try scanning again.3. Send a Test Message Open WhatsApp and send a message to yourself (or to the linked number). Try:
“Show me my Google Ads performance for the last 7 days”Your agent will respond with a performance summary — right in WhatsApp.
Telegram, Discord, or Web Dashboard
OpenClaw supports multiple channels. Set them up from the Channels section in your dashboard. The web dashboard works immediately — no extra setup needed.What Your Agent Can Do
Now that your agent is live, here’s what you can ask it — from WhatsApp, Telegram, or the web dashboard:Performance Reports
Campaign Creation
Optimization
Quick Actions
How the Skill File Works
When you installed the ADSMCP plugin, it included a 14,400-character instruction file called SKILL.md. This file is what makes your agent smart about advertising — it’s not just connecting to tools, it’s been taught:- 400+ tools documented — every parameter, every return value
- 6 complete workflows — performance analysis, keyword research, campaign creation, budget optimization, account management, automation
- Platform-specific knowledge — minimum budgets, best practices, when to use each platform
- Safety rules — always creates campaigns paused, always asks before spending money, always checks account context first
Agency Use Cases
Manage Multiple Clients
Connect multiple ad accounts across platforms. Use theswitch_primary_account command to jump between clients:
Team Access
Your entire team can interact with the same agent:- Account managers ask for performance reports via WhatsApp
- Media buyers create and optimize campaigns from Telegram
- Executives get high-level summaries from the web dashboard
Always-On Monitoring
Your agent runs 24/7. Set up monitoring and alerts:Scaling Without Hiring
The traditional agency model: more clients = more hires = more overhead. The AI agent model: more clients = more ad accounts connected to the same agent. One strategist with an always-on AI agent can manage what previously required a team of 3–5 junior media buyers.Read more: Marketing Agency Automation Deep dive into how agencies are scaling with AI — team structures, automation roadmaps, and ROI analysis.
Cost Breakdown
Compare this to hiring a junior media buyer ($4,000–6,000/month) or an agency retainer ($2,000–5,000/month per client). A self-hosted AI agent costs under $250/month at full scale.
Start free — 15 tool calls/month, no credit card Sign up for ADSMCP, connect your ad accounts in 2 minutes, and try it before committing.
Troubleshooting
I lost my gateway token
In Hostinger’s hPanel, go to your OpenClaw project settings and look under Environment variables. Your OPENCLAW_GATEWAY_TOKEN is stored there.
WhatsApp QR code won’t scan or connection fails Go to Settings → Config in the OpenClaw dashboard, click Update, then return to Channels and try scanning again. Make sure you’re using WhatsApp’s Link a Device option (not the regular QR scanner).
‘Not authenticated’ error from ADSMCP Your API key may have expired or been revoked. Generate a new one at adsmcp.ai/keys, then re-authenticate:
‘No ad platforms connected’ warning You authenticated with ADSMCP, but haven’t connected your ad accounts yet. Go to adsmcp.ai/connections in your browser and connect at least one platform (Google, Meta, Amazon, ChatGPT Ads, LinkedIn, or TikTok).
Agent isn’t responding or tools aren’t working Check your ADSMCP usage at adsmcp.ai. Free accounts get 15 tool calls/month. If you’ve hit the limit, upgrade to Plus ($49/mo) or wait for the next billing cycle.
How do I update OpenClaw? In Hostinger’s Docker Manager, navigate to your OpenClaw project and click the update option. This pulls the latest version automatically.
Can I use this with multiple ADSMCP accounts?
Yes. If you manage ads for multiple clients, each with their own ADSMCP account, use the switch_primary_account tool to switch between them. Or connect all client ad accounts under a single ADSMCP account with multi-account support.
What’s Next
Google Ads Guide Automate keyword research, campaign creation, and optimization
Meta Ads Guide Create image, video, and carousel campaigns with AI
Agency Automation Scale your agency with AI — team structures and workflows
OpenClaw Setup Docs Full OpenClaw plugin reference, CLI commands, and configuration