Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

snapchat-ads-clisnapchat ADS CLI 搜索

Agent Skill

snapchat-ads-cli 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,228

周安装

91

GitHub Stars

公开资料未说明

下载量

713
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:snapchat-ads-cli(snapchat ADS CLI 搜索)
来源仓库:https://github.com/bin-huang/snapchat-ads-cli
安装命令:
openclaw skills install snapchat-ads-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install snapchat-ads-cli

简介

利用命令行工具提取 Snapchat 广告系列、组与单条广告的统计数据报表。

  • 适用于数字营销人员分析投放效果与优化预算分配策略。
  • 输入账户凭证后可导出多维度指标如点击率、转化率与花费明细。
  • 必须拥有有效广告账户权限,否则无法获取任何数据结果。
  • 安装命令:openclaw skills install snapchat-ads-cli

SKILL.md

name
snapchat-ads-cli
description
>
Triggers
Snapchat Ads", "Snap Ads", "snapchat ad performance", "snapchat campaign stats",

Snapchat Ads CLI Skill

You have access to snapchat-ads-cli, a read-only CLI for the Snapchat Marketing API (v1). Use it to query organizations and ad accounts, pull performance stats with attribution windows, inspect creatives, debug delivery issues, estimate bids and audience sizes, manage AR lenses, and retrieve billing information.

Quick start

# Check if the CLI is available
snapchat-ads-cli --help

# List organizations
snapchat-ads-cli organizations

# List ad accounts for an organization
snapchat-ads-cli accounts ORG_ID

If the CLI is not installed, install it:

npm install -g snapchat-ads-cli

Authentication

The CLI requires a Snapchat OAuth2 access token. Credentials are resolved in this order:

  1. --credentials <path> flag (per-command)
  2. Environment variable: SNAPCHAT_ADS_ACCESS_TOKEN
  3. Auto-detected file: ~/.config/snapchat-ads-cli/credentials.json

The credentials file format:

{
  "access_token": "YOUR_ACCESS_TOKEN"
}

Before running any command, verify credentials are configured by running snapchat-ads-cli organizations. If it fails with a credentials error, ask the user to set up authentication.

Entity hierarchy

Organization
 +-- Ad Account
      +-- Campaign
      |    +-- Ad Squad (= ad group)
      |         +-- Ad -> Creative
      +-- Creative (managed at ad account level)

Most list commands require the parent entity ID. Start with organizations to find the org, then accounts <org-id> to find ad accounts, and drill down from there.

Monetary values

Snapchat uses micro-currency: 1 dollar = 1,000,000 micro. All spend values in stats and budgets are in micro-currency. Divide by 1,000,000 to get the actual dollar amount.

Output format

All commands output pretty-printed JSON by default. Use --format compact for single-line JSON (useful for piping).

Listing commands that support pagination use --limit <n> to control page size (default 50).

Commands reference

Organization discovery

# List all organizations the user has access to
snapchat-ads-cli organizations

# Get a specific organization
snapchat-ads-cli organization ORG_ID

Note: organizations does not support --limit pagination. organization fetches a single entity by ID.

Ad accounts

# List ad accounts for an organization
snapchat-ads-cli accounts ORG_ID
snapchat-ads-cli accounts ORG_ID --limit 100

# Get a specific ad account
snapchat-ads-cli account ACCOUNT_ID

Options for accounts: --limit <n> (default 50)

Funding & billing centers

# List funding sources for an organization
snapchat-ads-cli funding-sources ORG_ID
snapchat-ads-cli funding-sources ORG_ID --limit 100

# List billing centers for an organization
snapchat-ads-cli billing-centers ORG_ID
snapchat-ads-cli billing-centers ORG_ID --limit 100

Both support --limit <n> (default 50).

Campaigns

# List campaigns for an ad account
snapchat-ads-cli campaigns ACCOUNT_ID
snapchat-ads-cli campaigns ACCOUNT_ID --limit 100

# Get a specific campaign
snapchat-ads-cli campaign CAMPAIGN_ID

Options for campaigns: --limit <n> (default 50)

Ad squads

# List ad squads for a campaign
snapchat-ads-cli adsquads CAMPAIGN_ID
snapchat-ads-cli adsquads CAMPAIGN_ID --limit 100

# Get a specific ad squad
snapchat-ads-cli adsquad ADSQUAD_ID

Options for adsquads: --limit <n> (default 50)

Ads

# List ads for an ad squad
snapchat-ads-cli ads ADSQUAD_ID
snapchat-ads-cli ads ADSQUAD_ID --limit 100

# Get a specific ad
snapchat-ads-cli ad AD_ID

Options for ads: --limit <n> (default 50)

Creatives

# List creatives for an ad account
snapchat-ads-cli creatives ACCOUNT_ID
snapchat-ads-cli creatives ACCOUNT_ID --limit 100

# Get a specific creative
snapchat-ads-cli creative CREATIVE_ID

Options for creatives: --limit <n> (default 50)

Audiences & pixel

# List custom audience segments for an ad account
snapchat-ads-cli audiences ACCOUNT_ID
snapchat-ads-cli audiences ACCOUNT_ID --limit 100

# Get a specific audience segment
snapchat-ads-cli audience SEGMENT_ID

# Get the Snap Pixel for an ad account
snapchat-ads-cli pixel ACCOUNT_ID

Options for audiences: --limit <n> (default 50). audience and pixel do not support --limit.

Members & roles

# List members of an organization
snapchat-ads-cli members ORG_ID
snapchat-ads-cli members ORG_ID --limit 100

# List roles for an organization
snapchat-ads-cli roles ORG_ID
snapchat-ads-cli roles ORG_ID --limit 100

Both support --limit <n> (default 50).

Billing

# List invoices for an ad account
snapchat-ads-cli invoices ACCOUNT_ID
snapchat-ads-cli invoices ACCOUNT_ID --limit 100

# List transactions for an organization
snapchat-ads-cli transactions ORG_ID
snapchat-ads-cli transactions ORG_ID --limit 100

Both support --limit <n> (default 50).

Performance stats

Stats commands work on campaigns, ad squads, and ads. All three share the same options.

# Campaign stats (daily granularity)
snapchat-ads-cli campaign-stats CAMPAIGN_ID \
  --start-time 2026-03-01T00:00:00.000Z \
  --end-time 2026-03-15T00:00:00.000Z \
  --granularity DAY

# Ad squad stats (total granularity, default)
snapchat-ads-cli adsquad-stats ADSQUAD_ID \
  --start-time 2026-03-01T00:00:00.000Z \
  --end-time 2026-03-15T00:00:00.000Z

# Ad stats (hourly granularity with attribution windows)
snapchat-ads-cli ad-stats AD_ID \
  --start-time 2026-03-01T00:00:00.000Z \
  --end-time 2026-03-15T00:00:00.000Z \
  --granularity HOUR \
  --swipe-up-attribution-window 28_DAY \
  --view-attribution-window 7_DAY

# Campaign stats with specific fields and conversion sources
snapchat-ads-cli campaign-stats CAMPAIGN_ID \
  --start-time 2026-03-01T00:00:00.000Z \
  --end-time 2026-03-15T00:00:00.000Z \
  --fields spend,impressions,swipes \
  --conversion-source-types web,app

Stats options

OptionRequiredDescriptionDefault
--start-time <time>YesStart time in ISO 8601 format--
--end-time <time>YesEnd time in ISO 8601 format--
--granularity <gran>NoTOTAL, DAY, or HOURTOTAL
--fields <fields>NoStat fields to include (comma-separated)all default fields
--swipe-up-attribution-window <window>No1_DAY, 7_DAY, 28_DAY--
--view-attribution-window <window>No1_HOUR, 3_HOUR, 6_HOUR, 1_DAY, 7_DAY, 28_DAY--
--conversion-source-types <types>NoComma-separated: web, app, total--

The CLI passes --fields values directly to the Snapchat Marketing API without validation. When --fields is omitted, the API returns its default set. Use --fields spend,impressions,swipes to request specific fields. Refer to the Snapchat Measurement API docs for the full list of available fields.

Delivery debugging

# Get delivery status for a campaign
snapchat-ads-cli delivery-status campaigns CAMPAIGN_ID

# Get delivery status for an ad squad
snapchat-ads-cli delivery-status adsquads ADSQUAD_ID

# Get delivery status for an ad
snapchat-ads-cli delivery-status ads AD_ID

The entity-type argument must be one of: campaigns, adsquads, ads.

Targeting & insights

# Get targeting insights for an ad account (POST request)
snapchat-ads-cli audience-insights ACCOUNT_ID

# List custom conversions for a pixel
snapchat-ads-cli custom-conversions PIXEL_ID
snapchat-ads-cli custom-conversions PIXEL_ID --limit 100

Options for custom-conversions: --limit <n> (default 50). audience-insights does not support --limit.

Audit logs

# List external changelogs for an entity
snapchat-ads-cli audit-logs campaigns CAMPAIGN_ID
snapchat-ads-cli audit-logs adsquads ADSQUAD_ID
snapchat-ads-cli audit-logs ads AD_ID
snapchat-ads-cli audit-logs campaigns CAMPAIGN_ID --limit 100

The entity-type argument is passed directly to the API path. Common values: organizations, adaccounts, campaigns, adsquads, ads, creatives. Supports --limit <n> (default 50).

Media & lenses

# List media files for an ad account
snapchat-ads-cli media ACCOUNT_ID
snapchat-ads-cli media ACCOUNT_ID --limit 100

# List AR lenses for an organization
snapchat-ads-cli lenses ORG_ID
snapchat-ads-cli lenses ORG_ID --limit 100

Both support --limit <n> (default 50).

Estimates

# Get bid estimate for an ad account
snapchat-ads-cli bid-estimate ACCOUNT_ID --optimization-goal IMPRESSIONS

# Get estimated audience size for an ad account
snapchat-ads-cli audience-size ACCOUNT_ID

# Get event quality scores for a pixel
snapchat-ads-cli signal-readiness PIXEL_ID

# Get ad squad outcome configuration
snapchat-ads-cli ad-outcomes ADSQUAD_ID

bid-estimate has one optional option: --optimization-goal <goal> (e.g., IMPRESSIONS, SWIPES, APP_INSTALLS, VIDEO_VIEWS). The other estimate commands have no additional options.

Workflow guidance

When the user asks for a quick overview

  1. Run snapchat-ads-cli organizations to find accessible organizations
  2. Run snapchat-ads-cli accounts ORG_ID to list ad accounts
  3. Use campaign-stats with a recent date range for a performance snapshot
  4. Remember: divide all monetary values by 1,000,000 (micro-currency)

When the user asks for deep analysis

  1. Start with campaign-stats at --granularity TOTAL for overall performance
  2. Switch to --granularity DAY to spot daily trends
  3. Drill down with adsquad-stats and ad-stats for underperforming entities
  4. Use --fields to focus on specific metrics
  5. Add attribution windows (--swipe-up-attribution-window, --view-attribution-window) for conversion analysis
  6. Cross-reference with creatives to review creative content

When the user asks about delivery issues

  1. Run delivery-status campaigns CAMPAIGN_ID to check campaign delivery
  2. Drill into delivery-status adsquads ADSQUAD_ID for ad squad level issues
  3. Check delivery-status ads AD_ID for ad-level problems
  4. Review the ad squad and ad configurations with adsquad and ad

When the user asks about audiences

  1. Use audiences ACCOUNT_ID to list custom audience segments
  2. Use audience-size ACCOUNT_ID for reach estimation
  3. Use audience-insights ACCOUNT_ID for targeting insights
  4. Use pixel ACCOUNT_ID to check pixel setup
  5. Use custom-conversions PIXEL_ID to review custom conversion rules

When the user asks about conversion tracking

  1. Run pixel ACCOUNT_ID to find the Snap Pixel
  2. Use signal-readiness PIXEL_ID to check event quality scores
  3. Use custom-conversions PIXEL_ID to list custom conversion rules
  4. Pull stats with --conversion-source-types web,app and attribution windows

When the user asks about billing

  1. Run invoices ACCOUNT_ID to list invoices for an ad account
  2. Run transactions ORG_ID to list transactions for an organization
  3. Run funding-sources ORG_ID to check funding sources
  4. Run billing-centers ORG_ID to list billing centers

Error handling

  • Authentication errors -- ask the user to verify their access token; check that SNAPCHAT_ADS_ACCESS_TOKEN is set, --credentials points to a valid file, or ~/.config/snapchat-ads-cli/credentials.json exists
  • Empty results -- check that the parent entity ID is correct and that the entity has children (e.g., the ad account has campaigns)
  • Missing stats -- verify the date range covers a period when the entity was active; check that --start-time and --end-time are in ISO 8601 format
  • Delivery status issues -- use delivery-status to diagnose why an entity is not serving
  • Invalid entity-type -- for delivery-status use campaigns, adsquads, or ads; for audit-logs use campaigns, adsquads, ads, or creatives.

All errors are written to stderr as JSON with an error field and a non-zero exit code:

{"error": "Unauthorized"}

API documentation references

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

88.51%
按下载量换算631

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills