Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit
/install hopkin-paid-ads
Hopkin CLI Skill
When to Use
Use this skill when the user:
- Asks about ad accounts, campaigns, ad sets, ads, or ad performance
- Wants to query Meta Ads, Google Ads, LinkedIn Ads, or Reddit Ads data
- Needs cross-platform advertising reports or comparisons
- References Hopkin, MCP ad servers, or ad platform APIs
- Asks to list, inspect, or analyze advertising entities
Do NOT use this skill for:
- General marketing questions unrelated to ad platform data
- Creating or modifying campaigns (Hopkin is read-only)
- Non-advertising analytics (website analytics, SEO, etc.)
Setup
Installation
Before using Hopkin, ensure it's installed and up to date:
# Install globally from npm
npm install -g @hopkin/cli
# Or if already installed, check if an update is needed (do this if last check was >7 days ago)
npm outdated -g @hopkin/cli && npm install -g @hopkin/cli@latest
Authentication
Check if the user is authenticated before making any data requests:
hopkin auth status --json
If not authenticated, ask the user for their API key:
hopkin auth set-key \x3CAPI_KEY>
Users can get an API key from https://app.hopkin.ai/settings/api-keys
Discover Available Commands
After authenticating, run hopkin --help to see all platforms, commands, and global flags. This also automatically refreshes the tool cache if it's stale (cache lasts 7 days).
hopkin --help
Then drill down into a specific platform to see its resources and commands:
hopkin meta --help
hopkin google --help
hopkin linkedin --help
hopkin reddit --help
And further into a resource to see its verbs and a specific command to see its flags:
hopkin meta campaigns --help
hopkin meta campaigns list --help
Always use --help to discover what's available before guessing command names — platforms differ in their resource naming and available tools.
How to Use
Query Data
The CLI follows a consistent pattern:
hopkin \x3Cplatform> \x3Cresource> [verb] [flags]
- platform:
meta,google,linkedin,reddit - resource:
ad-accounts,campaigns,adsets,ads, etc. - verb:
list,get(defaults tolistif omitted) - flags:
--reason(required for most commands),--account,--limit, etc.
Common Commands
# List ad accounts
hopkin meta ad-accounts list --reason "checking accounts" --json
hopkin google accounts list --reason "listing accounts" --json
# List campaigns for an account
hopkin meta campaigns list --account \x3CACCOUNT_ID> --reason "reviewing campaigns" --json
# Get performance insights
hopkin meta insights --account \x3CACCOUNT_ID> --reason "performance review" --json
# Ping a platform (health check)
hopkin meta ping --reason "connectivity test" --json
Format Output
Always use --json when processing data programmatically. Other formats are available:
# JSON (best for parsing)
hopkin meta ad-accounts list --reason "..." --json
# CSV (for spreadsheet export)
hopkin meta ad-accounts list --reason "..." --format csv
# TSV
hopkin meta ad-accounts list --reason "..." --format tsv
# Filter specific fields
hopkin meta ad-accounts list --reason "..." --json --fields id,name,currency
# Fetch all pages (for large result sets)
hopkin meta ad-accounts list --reason "..." --json --all
Important Notes
- Read-only: Hopkin cannot modify campaigns, change budgets, or edit ads. It only reads data.
--reasonflag: Most commands require--reason "..."for audit trail purposes. Always include a brief, honest description of why you're querying the data.- Account IDs: Many commands require
--account \x3CID>. List accounts first to discover available IDs. - Pagination: Results are paginated by default (25 per page). Use
--allto fetch everything, or--limit Nto control page size. - Caching: The MCP servers cache data. Pass
--refreshto a command if the user needs real-time data. - Platform differences: Not all platforms have the same resources. Google has
accounts(notad-accounts), LinkedIn hascampaign-groupsandcreatives(notadsetsandads). Always checkhopkin \x3Cplatform> --helpfirst.
Update Check
Before each session where you use Hopkin, check if the CLI needs updating. Do this if you haven't checked in the last 7 days:
hopkin --version
npm view @hopkin/cli version
If the npm version is newer, update:
npm install -g @hopkin/cli@latest
Troubleshooting
# Check auth status
hopkin auth status --json
# Debug a failing command
hopkin meta ad-accounts list --reason "debug" --json --debug
# Re-authenticate
hopkin auth set-key \x3CNEW_KEY>
# Re-discover available commands (also refreshes tool cache)
hopkin --help
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hopkin-paid-ads - 安装完成后,直接呼叫该 Skill 的名称或使用
/hopkin-paid-ads触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit 是什么?
Query ad platform data (Meta, Google, LinkedIn, Reddit) using the Hopkin CLI. Use this skill when the user asks about ad accounts, campaigns, ad performance,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。
如何安装 Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hopkin-paid-ads」即可一键安装,无需额外配置。
Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit 是免费的吗?
是的,Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit 支持哪些平台?
Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hopkin – Paid Ads: Meta, TikTok, Google, LinkedIn, Reddit?
由 Nima Gardideh(@nemo)开发并维护,当前版本 v0.1.0。