stack-ads
Paid advertising stack for any project. Researches the product and its market, derives targeting, writes ad copy, generates images, video and voice-over, launches paused campaigns on Google Ads, Meta, TikTok and LinkedIn (drafts there) from a reviewed dry-run plan with budget ceilings and a rollback ledger, and reports results. Walks the user through obtaining every key. Integrates Google Ads, Search Console, Meta, TikTok, LinkedIn, Firecrawl, Apify, DataForSEO, OpenAI, Gemini and fal.ai via MCP and one dependency-free toolkit.
v1.1.5Updated
- stack
- ads
- agents-store
- advertising
- google-ads
- meta-ads
- tiktok-ads
- linkedin-ads
- search-console
- ad-creatives
- firecrawl
- apify
- dataforseo
- openai
- gemini
- fal-ai
Install
Pick your agent for the steps.
Install on Claude Code
1.Add the marketplace
/plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
/plugin install stack-ads@agents-store-claude-pluginsType it inside Claude Code.
Install on GitHub Copilot CLI
1.Add the marketplace
copilot plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
copilot plugin install stack-ads@agents-store-claude-plugins
GitHub Copilot CLI does not receive: commands, agents.
Install on Cursor
1.Manual install
Cursor has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Cursor reads plugins from.
Cursor’s plugin documentation now lives at docs.grok.com (cursor.com/docs/plugins redirects there). Plugins come from its marketplace, a team marketplace or a local folder.
Install on Codex
1.Add the marketplace
codex plugin marketplace add Agents-Store/codex-plugins2.Install the plugin
codex plugin add stack-ads@agents-store-codex-plugins
Codex does not receive: commands, agents.
Install on Gemini CLI
1.Clone the mirror
git clone https://github.com/Agents-Store/gemini-extensions2.Install the plugin
gemini extensions link ./gemini-extensions/stack-adsRun it from the folder you cloned into.
Consumer access to Gemini CLI ended on 2026-06-18. This target serves enterprise Gemini Code Assist; Antigravity is the consumer successor.
Install on Antigravity
1.Clone the mirror
git clone https://github.com/Agents-Store/antigravity-skills2.Install the plugin
agy plugin install ./antigravity-skills/stack-adsRun it from the folder you cloned into.
Antigravity does not receive: commands.
Install on Kimi Code
1.Clone the mirror
git clone https://github.com/Agents-Store/kimi-plugins2.Install the plugin
/plugins install ./kimi-plugins/stack-adsRun it from the folder you cloned into, and type it inside Kimi Code.
Kimi Code does not receive: commands, agents, hooks, MCP servers.
Install on Devin
1.Install the plugin
devin plugins install Agents-Store/devin-plugins#stack-ads
Devin does not receive: commands, agents, hooks, MCP servers.
Install on Hermes Agent
1.Install the plugin
hermes plugins install Agents-Store/hermes-plugins/stack-ads
Hermes Agent does not receive: commands, agents, hooks, MCP servers.
Install on OpenCode
1.Manual install
OpenCode has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place OpenCode reads plugins from.
OpenCode does not receive: hooks.
Install on Pi
1.Manual install
Pi has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Pi reads plugins from.
Pi does not receive: commands, agents, hooks, MCP servers.
Install on OpenClaw
1.Clone the mirror
git clone https://github.com/Agents-Store/openclaw-generated-plugins2.Install the plugin
openclaw plugins install ./openclaw-generated-plugins/stack-adsRun it from the folder you cloned into.
OpenClaw does not receive: commands, agents, hooks, MCP servers.
Install on Agent Plugins 1.0
1.Manual install
Agent Plugins 1.0 has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Agent Plugins 1.0 reads plugins from.
Agent Plugins 1.0 does not receive: commands, agents, hooks.
What is inside
Skills (11)
- ad-copy
This skill should be used when the user asks to "write ad copy", "write headlines and descriptions", "shorten these ad texts", "more ad text variants", or needs texts for Google, Meta, TikTok or LinkedIn ads. Text only. For images and video use ad-creatives, for creating ads launch-campaign.
- ad-creatives
This skill should be used when the user asks to "generate ad creatives", "make ad images", "create a video for the ad", "add a voice-over", "resize for Stories", or needs media files for Google, Meta, TikTok or LinkedIn ads. Not for ad text (ad-copy) or uploading (launch-campaign).
- examples
Complete walkthroughs of advertising a project with stack-ads, from getting the first key to a weekly review of running campaigns.
- full-campaign
This skill should be used when the user asks to "advertise this project", "run ads from scratch", "take this product from zero to running ads", "do the whole campaign end to end", or to continue an unfinished campaign checklist. For one step use that step's skill.
- init-project
This skill should be used when the user asks to "set up ads for this project", "connect Google Ads, Meta, TikTok or LinkedIn", "where do I get the Meta, Google Ads or Firecrawl key", "set the ads budget ceiling", or when a key for advertising is missing. For the whole path use full-campaign.
- launch-campaign
This skill should be used when the user asks to "launch the campaign", "create the campaign in Google Ads, Meta, TikTok or LinkedIn", "run the dry run", "activate, pause or roll back the campaign", or edit a live campaign. Not for budgets (media-plan), results (performance-report), full path (full-campaign).
- market-research
This skill should be used when the user asks to "research ad competitors", "find keywords for ads", "what are competitors advertising", "estimate CPC and search volume", "find interest ids for Meta or TikTok", "find job titles and company sizes to target on LinkedIn" before a media plan. Not for SEO audits or the product brief.
- media-plan
This skill should be used when the user asks to "build a media plan", "plan the ad campaign", "which platform should we advertise on", "how should we split the ad budget", "is this budget enough". Writes the plan only. For creating ads use launch-campaign, for results performance-report.
- performance-report
This skill should be used when the user asks "how are the ads performing", "make an ads report", "compare Google, Meta, TikTok and LinkedIn results", "why is the cost per lead so high". Read-only. For API errors use troubleshoot, to change a campaign launch-campaign. Not for SEO reports.
- product-brief
This skill should be used when the user asks to "write the ad brief", "describe the product for advertising", "what do we sell and to whom", "extract the brand kit", or when ads/brief.md is missing. For competitors, keywords or platform audiences use market-research.
- troubleshoot
This skill should be used when the user reports "the ads command failed", "API error from Google Ads, Meta, TikTok or LinkedIn", "my ad was rejected", "the key is rejected", "the MCP server is not connecting". Not for obtaining a key (init-project) or weak results (performance-report).
Agents (1)
- stack-orchestrator
Use this agent for advertising work that spans several steps or platforms and suits its own context: a research track, a creative batch, launch plans for several platforms, or a cross-platform report. It prepares and dry-runs; it never applies or activates a campaign. <example> Context: Research runs beside other work user: "Research our competitors' ads and the keywords we should bid on, then give me the summary" assistant: "I'll use the stack-orchestrator agent to run both research tracks and return the findings with their cost." <commentary>Large API outputs stay out of the main conversation.</commentary> </example> <example> Context: The media plan is approved user: "Prepare the creatives and the launch plan files for Google, Meta, TikTok and LinkedIn" assistant: "I'll use the stack-orchestrator agent to build them and bring back the dry runs for your approval." <commentary>It stops at the dry runs: applying a plan needs the user's approval.</commentary> </example>
Hooks (1)
- PreToolUse
MCP servers (6)
- firecrawl http
- apify http
- dataforseo stdio
- google-ads stdio
- meta-ads http
- tiktok-ads http
README
Advertise any project from inside the agent: research the product and its market, derive targeting, write ad copy, generate images, video and voice-over, launch campaigns on Google Ads, Meta, TikTok and LinkedIn from a reviewed dry-run plan, and report the results.
Install it into the project you want to advertise. The plugin creates one folder there, ads/, that holds the brief, the research, the plan, the creatives, the launch plans and a ledger of everything created in an ad account.
What it does
| Step | Skill | Result |
|---|---|---|
| Set up, obtain and verify keys | init-project | ads/ workspace, working keys, MCP servers |
| Describe the product | product-brief | ads/brief.md, ads/brand.json |
| Competitors, keywords, audiences | market-research | ads/research/ |
| Channels, budget, structure, tracking, compliance | media-plan | ads/plan/media-plan.md |
| Texts within platform limits | ad-copy | ads/plan/copy/ |
| Images, video, voice-over, music | ad-creatives | ads/creatives/ |
| Dry run, paused creation, activation, rollback | launch-campaign | ads/launch/ |
| Spend, results, next actions | performance-report | ads/reports/ |
| The whole path with a checklist | full-campaign | all of the above |
| Errors | troubleshoot | cause and fix |
| Walkthroughs | examples (run as /stack-ads:examples) | five scenarios |
Agent: stack-orchestrator takes a research track, a creative batch, plan preparation or a cross-platform report into its own context. It prepares and dry-runs; it never applies or activates.
Install
In the project to advertise:
claude plugin marketplace add Agents-Store/claude-plugins
claude plugin install stack-ads@agents-store-claude-plugins --scope project
Or in .claude/settings.json of the project:
{
"enabledPlugins": {
"stack-ads@agents-store-claude-plugins": true
}
}
Then say "set up ads for this project", or run /stack-ads:init-project.
Requirements: Python 3.9 or later, nothing to install. Optional: ffmpeg (exact-size crops, muxing audio), Node 20+ (the DataForSEO MCP server), pipx (the Google Ads MCP server).
Keys
Every service is optional: configure what the plan needs. init-project walks through each one step by step (which page, where to click, what it costs, how long it takes) and verifies it with a live call. At any time python3 ads/tools/ads.py doctor lists what is missing and where to get it.
Research and creative generation:
| Service | Variables | Used for |
|---|---|---|
| Firecrawl | FIRECRAWL_API_KEY | reading the site and competitor pages, brand kit |
| Apify | APIFY_TOKEN | ad libraries, reviews, social content |
| DataForSEO | DATAFORSEO_USERNAME, DATAFORSEO_PASSWORD | keyword volumes, CPC, competitors' paid keywords |
| OpenAI | OPENAI_API_KEY | images, voice-over, image analysis |
| Gemini | GEMINI_API_KEY | images, video, voice-over, music, analysis |
| fal.ai | FAL_KEY | catalogue of image, video, avatar and audio models |
Ad platforms:
| Service | Variables | Used for |
|---|---|---|
| Google Ads | GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REFRESH_TOKEN, GOOGLE_ADS_CUSTOMER_ID, optional GOOGLE_ADS_LOGIN_CUSTOMER_ID | campaigns, keyword planner, reports |
| Search Console | the same OAuth values plus GSC_SITE_URL | organic queries as seeds for paid search |
| Meta | META_ACCESS_TOKEN, META_AD_ACCOUNT_ID, META_PAGE_ID, optional META_APP_ID, META_APP_SECRET, META_PIXEL_ID, META_INSTAGRAM_USER_ID | Facebook and Instagram campaigns, Ad Library, insights |
| TikTok | TIKTOK_ACCESS_TOKEN, TIKTOK_ADVERTISER_ID, optional TIKTOK_APP_ID, TIKTOK_APP_SECRET, TIKTOK_PIXEL_ID | campaigns and reports; the MCP server works without them |
LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET, LINKEDIN_ACCESS_TOKEN, LINKEDIN_AD_ACCOUNT_ID, optional LINKEDIN_REFRESH_TOKEN, LINKEDIN_TOKEN_EXPIRES, LINKEDIN_ORGANIZATION_ID, LINKEDIN_REDIRECT_URI | campaigns (as drafts) and reports; no MCP server exists, the Advertising API product needs LinkedIn's approval | |
| Google Ads MCP server only | GOOGLE_CLOUD_PROJECT, GOOGLE_APPLICATION_CREDENTIALS | written by google export-adc |
Keys live in ads/.env, which the workspace's own .gitignore excludes. The full list with comments is templates/.env.example; the guides are in skills/init-project/references/keys-*.md and are copied into the project as ads/tools/guides/.
The toolkit
One command-line tool backs every skill: python3 ads/tools/ads.py. It is Python standard library only, and init-project copies it into the project, so the command is the same in every shell and on every agent.
python3 ads/tools/ads.py doctor --live
python3 ads/tools/ads.py launch plan --file ads/launch/NAME.json
It covers setup (init, keys, doctor, env sync-claude), Google Ads and Search Console, Meta, TikTok, LinkedIn, creative generation (models, image, video, speech, music, analyze, fal), research (firecrawl, apify, dataforseo) and launch plans (launch, ledger). Reference: skills/init-project/references/toolkit.md.
No model id is built in: models --pick asks each provider what exists today.
How money is protected
- A write prints what it would do and stops unless it carries
--yes. launch planprints eight blocks (TARGET, PRECHECK, CHANGE, BACKUP, IMPACT, VALIDATE, ROLLBACK, APPLY) and asks the platform to validate what it can: Google validates the whole request, Meta the steps whose references are known, TikTok and LinkedIn have no validation mode.launch applyruns only on a plan whose last dry run was clean, and only while the plan, the files it sends, the account ids and the currency are what that dry run looked at. A changed plan is a new plan, and a step that is already applied cannot be edited.- What a request does is read from its parameters: a path that carries parameters, a batch of calls, an object nested inside another call and a Meta parameter named
methodare refused. A Google body is rewritten to one spelling of its field names before it is judged and sent, and a write names no account but the one inads/.env. - A plan only creates campaigns and what hangs under them. A step that would change or remove something that already exists is refused; so is a new campaign that no budget in the plan limits, and anything that would join a campaign from elsewhere. The dry run's promise that nothing existing is modified is enforced, not assumed.
- A campaign must be created paused, and on Meta and TikTok every ad set, ad group and ad as well. On Google, an ad group, asset group or ad under a campaign that already exists must be paused too. On LinkedIn every campaign group, campaign and creative is created as a
DRAFTand every post as a dark post. Anything else is refused. - A daily budget above
guardrails.max_daily_budgetinads/config.jsonis refused, for one object and for the sum of a plan, and the sum must equal the budget the plan declares. Lifetime budgets are refused until the user setsguardrails.max_total_budget. A budget is a plain number that is not negative, and a ceiling that is missing or zero refuses every budget. The ceilings are set by the user. - Starting spend needs
launch activate --yes, or--activateon a single call, after a second approval. Without--yesboth only show what they would switch on. - Every created object is written to
ads/launch/ledger.jsonl, solaunch rollbackcan pause or remove it and an interrupted apply resumes without creating anything twice. A step is marked before it is sent: when no clear answer comes back,launch applystops and goes on only with--resend STEP, after someone has looked in the ad account. A rollback goes on past an object that fails and names what is left. - Campaigns on Google change through
google mutateonly:google callsends reads and conversion uploads. - In Claude Code a
PreToolUsehook asks the user to confirm each write to an ad account: the toolkit's--yescommands (also when split over several lines, wrapped inbash -c, or behindsudo,timeoutordocker exec), direct calls to an ad platform API withcurl,wget, HTTPie or inline code, the Meta command-line tool, and every tool of the Meta, TikTok and Google Ads MCP servers that is not plainly a read. The hook asks; it never blocks. It needspython3onPATH, it recognises the toolkit by its file nameads.py, and it reads the command as text: a request put together at run time, in a script file or from pieces of a URL, is out of its sight. It is a second layer; the toolkit's own rules are the first.
MCP servers
The plugin declares six official servers. They are optional: the toolkit covers every operation, with dry runs and a ledger the servers lack. Tools are named mcp__plugin_stack-ads_<server>__<tool>.
| Server | Transport | Needs | Notes |
|---|---|---|---|
firecrawl | hosted HTTP | FIRECRAWL_API_KEY | scrape, search, map |
apify | hosted HTTP | APIFY_TOKEN | Actors |
dataforseo | stdio, npx | DATAFORSEO_USERNAME, DATAFORSEO_PASSWORD | keyword and SERP data |
google-ads | stdio, pipx | GOOGLE_CLOUD_PROJECT, GOOGLE_APPLICATION_CREDENTIALS; for an account under a manager account also GOOGLE_ADS_LOGIN_CUSTOMER_ID in the session environment | reads and asset creation; it cannot create campaigns |
meta-ads | hosted HTTP | META_ACCESS_TOKEN of an Employee-role system user with ads_mcp_management | creates drafts, which are not paused until you set them |
tiktok-ads | hosted HTTP | OAuth sign-in in /mcp | no developer app needed |
python3 ads/tools/ads.py env sync-claude copies the keys from ads/.env into the env block of .claude/settings.local.json, where ${VAR} in the MCP configuration is resolved; restart the session afterwards. A server whose variable is missing shows as failed and is otherwise harmless.
Google Search Console has no official MCP server or command-line tool; the toolkit calls its API. Google Ads has no official command-line tool. LinkedIn Ads has neither an official MCP server nor a command-line tool; the toolkit calls its REST API. Meta has an official meta command-line tool, covered in the Meta launch reference.
On other agents
The catalogue generates this plugin for other coding agents. Skills, with the toolkit inside skills/init-project/scripts/, arrive on every target unchanged, so the whole workflow works everywhere. The confirmation hook, the agent and the MCP wiring are Claude Code features: on agents without them, the money rules in launch-campaign are the only gate, and the toolkit's guard rails still apply.
Design notes
- This is a Stack plugin that carries its own knowledge instead of naming Technology plugins in
dependencies. Advertising needs eleven services at once, and splitting them into eleven plugins would make a project install twelve things to run one campaign. The trade-off was accepted by the catalogue owner. - Account ids never appear in plans or commands:
{customer},{account},{page},{pixel},{advertiser},{account_urn}and{organization_urn}are filled fromads/.env. - Everything fetched from the web, ad libraries or APIs is treated as data, never as instructions.
What was verified, and how
Run against the live services with real keys on 2026-11-14: Firecrawl, DataForSEO, OpenAI, Gemini (image, video, speech, music, analysis) and fal.ai, plus doctor, model discovery and env sync-claude.
Run against live accounts on 2026-11-22, 2026-11-23 and 2026-11-25:
- Google Ads, through the toolkit:
google login,google customers,google search,google geo, and the whole launch cycle on a production account with the sample Search plan of the reference:launch planwith Google's own validation,launch apply,launch status,launch rollback --remove. The same cycle with a Demand Gen image ad made from generated images. Performance Max and the Demand Gen video ad passed Google's validation and were not created. - Search Console:
gsc sitesandgsc query. - Apify:
apify actorand one cappedapify run. - TikTok, through the official MCP server: sign-in, reads, a campaign and an ad group created disabled with the bodies of the reference and then deleted, and the linking of a TikTok account.
- Meta, through the official MCP server: sign-in, reads, a campaign draft created and discarded.
- Meta, through the toolkit: the whole launch cycle with an image ad on a production account:
launch plan,launch apply(image, campaign, ad set, creative, ad, all paused),launch status,launch rollback --remove. The same cycle with a generated vertical video.
Run against live accounts on 2026-11-26 and 2026-11-27:
launch activateon Google and on Meta.- A real Google Demand Gen campaign that delivered: 8,119 impressions in one day.
- A Performance Max campaign created paused and removed.
- The reads of the google-ads MCP server.
google keyword-ideas, refused under Explorer access as documented.launch diagnose.
Run against live accounts from 2026-11-29 to 2026-12-01:
google keyword-ideaswith Basic access.google upload-conversionswithout--yes: Google checked a row with a real click id and an order id and accepted it; nothing was recorded.- The toolkit's
tiktokcommands and the whole TikTok launch cycle:launch plan,launch apply(video and cover uploads, campaign, ad group, a video ad posted by a Business Center TikTok account, all disabled),launch status,launch diagnose,launch rollback --remove. - LinkedIn through the toolkit, on the free test ad account:
linkedin login(with a refresh token),linkedin create-test-account, the look-ups, and the launch cycle of the sample plan:launch plan,launch apply(image upload, campaign group, campaign, dark post, creative, all drafts),launch status,launch diagnose,launch rollback --remove. Two values taken from LinkedIn's documentation were refused by the API; the plan and the guard rails carry the fix. - LinkedIn on a real ad account: one image ad capped at 10 USD in total,
launch activate, LinkedIn's review, delivery (about 1,000 impressions in the first hours),linkedin reportandlaunch diagnosereading it.
Not verified: Meta delivery (two approved ads showed 0 impressions in one ad account over 31 hours, cause unknown), a conversion upload that Google records (--yes; only the check without it ran), and on LinkedIn archiving a campaign that is no longer a draft.
Not run against a live account: the Demand Gen video ad, TikTok Smart+ and the Spark Ads authorization-code route through the toolkit, and uploads through the MCP servers. These are covered by unit tests with simulated HTTP and were written from the official documentation. Treat the first dry run of each as the real test, and expect to adjust a field or two; LEARNINGS.md records what the live runs changed.
Tests
python3 -m unittest discover -s tests
Run from the plugin directory. The suite covers the guard rails, the launch engine, model discovery, the hook, a set of regression tests for the ways the money rules were once defeated (tests/test_safety.py), and a contract test that parses every command shown in the documentation with the real parser and runs every documented plan through the guard rails and the budget check.
Source
- Source on GitHub
- Mirror: Agents-Store/claude-plugins
- Mirror: Agents-Store/cursor-plugins
- Mirror: Agents-Store/codex-plugins
- Mirror: Agents-Store/gemini-extensions
- Mirror: Agents-Store/antigravity-skills
- Mirror: Agents-Store/kimi-plugins
- Mirror: Agents-Store/devin-plugins
- Mirror: Agents-Store/hermes-plugins
- Mirror: Agents-Store/opencode-plugins
- Mirror: Agents-Store/pi-extensions
- Mirror: Agents-Store/openclaw-generated-plugins
- Mirror: Agents-Store/agentplugins