ad-poller

ad-poller is a command for Claude Code from seancrowe01/ads-machine. It costs 44 tokens per session (3,541 once invoked), scanned A, original, MIT.

A daily or manual advertising-monitoring command that retrieves active competitor ads from Meta Ad Library through Apify, a web-scraping service, and stores new records in Airtable. It also tracks how long ads run, marks stopped ads, and sends Slack alerts.

In plain words
What is it for?
Use it to scan tracked Facebook pages, avoid duplicate records, save ad copy and media links for later analysis, identify ads running for at least 30 days, and notify the team about changes.
Why use it?
It removes repetitive competitor-ad collection and helps separate new ads, long-running ads, and ads that are no longer active.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/seancrowe01/ads-machine/ad-poller
Clone the repo
git clone --depth 1 https://github.com/seancrowe01/ads-machine

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ad-poller

README.md
[![agentmods](https://agentmods.dev/badge/commands/seancrowe01/ads-machine/ad-poller.svg)](https://agentmods.dev/commands/seancrowe01/ads-machine/ad-poller)
Your own site
<a href="https://agentmods.dev/commands/seancrowe01/ads-machine/ad-poller"><img src="https://agentmods.dev/badge/commands/seancrowe01/ads-machine/ad-poller.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.03541
Opus 5 $0.00022 $0.01770
Sonnet 5 $0.00009 $0.00708
Haiku 4.5 $0.00004 $0.00354

Measured 5d ago against content hash 49c10b3d7f8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ad-poller scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/ad-poller.md · 327 lines

How it starts

The opening of the file, as written. The whole thing — 327 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Daily Ad Poller

You are a competitive ad intelligence scraper. You pull every active Meta ad from tracked competitors, dedup against existing records, update longevity tiers, and push new ads to the Ad Swipe File.

What you produce: New competitor ad records in Airtable with copy, media URLs, and metadata -- ready for /ad-analyzer to enrich.


Prerequisites

  1. Airtable MCP connected (run /ads-setup if not)
  2. Apify MCP connected or APIFY_TOKEN in .env
  3. Competitors table populated with at least 1 competitor with a Facebook Page ID
  4. CLAUDE.md configured with Airtable base ID and table IDs

Config

Read these from CLAUDE.md:

Airtable Base ID: YOUR_AIRTABLE_BASE_ID
Competitors Table: YOUR_COMPETITORS_TABLE_ID
Ad Swipe File Table: YOUR_SWIPE_FILE_TABLE_ID

Step 1: Load Active Competitors

Fetch all records from Competitors table where Status = Active:

Use Airtable MCP: list_records
  base_id: {from CLAUDE.md}
  table_id: {Competitors table ID}
  filter: {Status} = 'Active'
  fields: Name, Facebook Page ID

Each competitor MUST have a Facebook Page ID. Skip any without one and warn the user.

Print the competitor list:

Found {N} active competitors:
  1. {Name} ({Page ID})
  2. {Name} ({Page ID})
  ...

If no competitors found, tell the user to populate the Competitors table first or run /ads-setup.


Step 1b: Resolve Page IDs (if needed)

If any competitor has a Facebook Page URL but no numeric Page ID, resolve it automatically:

Actor: apify/facebook-page-contact-information (official Apify -- 4.8k users, 99.6% success, ~$0.013/page)

{
  "pages": ["https://www.facebook.com/{page_slug}/"]
}

CRITICAL: The response contains TWO different IDs. You MUST use the right one:

  • facebookId / pageId = the Facebook profile ID (DO NOT USE for Ad Library)
  • pageAdLibrary.id = the Ad Library Page ID (USE THIS ONE)

Also extract from the response:

  • title = confirmed page name
  • ad_status = "This Page is currently running ads." or "This Page isn't currently running ads."
  • website, category, followers = useful metadata

Read the full file on GitHub · 327 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 327 lines · 44 tokens per session scan A 49c10b3d7f8b

Subscribe to this mod's changes

ad-poller is a command published in the GitHub repository seancrowe01/ads-machine (20 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 3,541 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

competitive-auction-insights

Analyze Google Ads auction insights to understand competitive landscape. See who you're competing against and where you're winning or losing. (requires Pro subscription).

Ad-Superpowers/ad-superpowers-plugin · 27 tokens

organic-performance-audit

Comprehensive audit of your organic search performance using Google Search Console data. Analyzes keyword rankings, CTR optimization opportunities, page performance, search type breakdown, and trend analysis with actionable recommendations. (requires Pro subscription).

Ad-Superpowers/ad-superpowers-plugin · 43 tokens

b2b-pipeline-review

B2B lead pipeline review — CPL trends, lead quality scoring, and MQL-to-SQL conversion analysis across LinkedIn and Google Ads.

Ad-Superpowers/ad-superpowers-plugin · 28 tokens

creative-fatigue-scanner

Proactively detect ad creative fatigue before performance tanks. Uses platform-specific evidence-based thresholds: TikTok fatigues 4x faster (3-7 days) than Meta (14 days). Google Ads uses asset ratings (4-8 weeks). LinkedIn has longest cycles (4-6 weeks). (requires Pro subscription).

Ad-Superpowers/ad-superpowers-plugin · 64 tokens

incrementality-test-designer

Design rigorous incrementality tests to measure true advertising impact. Includes geo lift test planning, holdout/control group design, statistical power calculations, test duration recommendations, and cost-benefit analysis. Essential for understanding true incremental ROAS in a privacy-first measurement landscape.…

Ad-Superpowers/ad-superpowers-plugin · 56 tokens

channel-strategy-advisor

AI-powered channel selection advisor that matches campaign objectives with optimal platform mix. Analyzes audience fit, platform strengths, funnel stage requirements, and budget constraints to recommend the ideal channel strategy. Includes budget allocation suggestions and expected performance benchmarks per channel.…

Ad-Superpowers/ad-superpowers-plugin · 53 tokens