Skip to content
agents.store
stackstack

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. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install stack-ads@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

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

StepSkillResult
Set up, obtain and verify keysinit-projectads/ workspace, working keys, MCP servers
Describe the productproduct-briefads/brief.md, ads/brand.json
Competitors, keywords, audiencesmarket-researchads/research/
Channels, budget, structure, tracking, compliancemedia-planads/plan/media-plan.md
Texts within platform limitsad-copyads/plan/copy/
Images, video, voice-over, musicad-creativesads/creatives/
Dry run, paused creation, activation, rollbacklaunch-campaignads/launch/
Spend, results, next actionsperformance-reportads/reports/
The whole path with a checklistfull-campaignall of the above
Errorstroubleshootcause and fix
Walkthroughsexamples (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:

ServiceVariablesUsed for
FirecrawlFIRECRAWL_API_KEYreading the site and competitor pages, brand kit
ApifyAPIFY_TOKENad libraries, reviews, social content
DataForSEODATAFORSEO_USERNAME, DATAFORSEO_PASSWORDkeyword volumes, CPC, competitors' paid keywords
OpenAIOPENAI_API_KEYimages, voice-over, image analysis
GeminiGEMINI_API_KEYimages, video, voice-over, music, analysis
fal.aiFAL_KEYcatalogue of image, video, avatar and audio models

Ad platforms:

ServiceVariablesUsed for
Google AdsGOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REFRESH_TOKEN, GOOGLE_ADS_CUSTOMER_ID, optional GOOGLE_ADS_LOGIN_CUSTOMER_IDcampaigns, keyword planner, reports
Search Consolethe same OAuth values plus GSC_SITE_URLorganic queries as seeds for paid search
MetaMETA_ACCESS_TOKEN, META_AD_ACCOUNT_ID, META_PAGE_ID, optional META_APP_ID, META_APP_SECRET, META_PIXEL_ID, META_INSTAGRAM_USER_IDFacebook and Instagram campaigns, Ad Library, insights
TikTokTIKTOK_ACCESS_TOKEN, TIKTOK_ADVERTISER_ID, optional TIKTOK_APP_ID, TIKTOK_APP_SECRET, TIKTOK_PIXEL_IDcampaigns and reports; the MCP server works without them
LinkedInLINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET, LINKEDIN_ACCESS_TOKEN, LINKEDIN_AD_ACCOUNT_ID, optional LINKEDIN_REFRESH_TOKEN, LINKEDIN_TOKEN_EXPIRES, LINKEDIN_ORGANIZATION_ID, LINKEDIN_REDIRECT_URIcampaigns (as drafts) and reports; no MCP server exists, the Advertising API product needs LinkedIn's approval
Google Ads MCP server onlyGOOGLE_CLOUD_PROJECT, GOOGLE_APPLICATION_CREDENTIALSwritten 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 plan prints 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 apply runs 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 method are 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 in ads/.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 DRAFT and every post as a dark post. Anything else is refused.
  • A daily budget above guardrails.max_daily_budget in ads/config.json is 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 sets guardrails.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 --activate on a single call, after a second approval. Without --yes both only show what they would switch on.
  • Every created object is written to ads/launch/ledger.jsonl, so launch rollback can 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 apply stops 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 mutate only: google call sends reads and conversion uploads.
  • In Claude Code a PreToolUse hook asks the user to confirm each write to an ad account: the toolkit's --yes commands (also when split over several lines, wrapped in bash -c, or behind sudo, timeout or docker exec), direct calls to an ad platform API with curl, 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 needs python3 on PATH, it recognises the toolkit by its file name ads.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>.

ServerTransportNeedsNotes
firecrawlhosted HTTPFIRECRAWL_API_KEYscrape, search, map
apifyhosted HTTPAPIFY_TOKENActors
dataforseostdio, npxDATAFORSEO_USERNAME, DATAFORSEO_PASSWORDkeyword and SERP data
google-adsstdio, pipxGOOGLE_CLOUD_PROJECT, GOOGLE_APPLICATION_CREDENTIALS; for an account under a manager account also GOOGLE_ADS_LOGIN_CUSTOMER_ID in the session environmentreads and asset creation; it cannot create campaigns
meta-adshosted HTTPMETA_ACCESS_TOKEN of an Employee-role system user with ads_mcp_managementcreates drafts, which are not paused until you set them
tiktok-adshosted HTTPOAuth sign-in in /mcpno 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 from ads/.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 plan with 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 sites and gsc query.
  • Apify: apify actor and one capped apify 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 activate on 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-ideas with Basic access.
  • google upload-conversions without --yes: Google checked a row with a real click id and an order id and accepted it; nothing was recorded.
  • The toolkit's tiktok commands 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 report and launch diagnose reading 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.