据 AlphaMoat 统计,截至 2026-10,Meta Ads 累计下载 16,205 次、获 30 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 1,735 位,在「商业运营」分类(873 个)中排名第 145 位。
列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。
| 平台 | 累计下载 | 星标 | 评论 |
|---|---|---|---|
| ClawHub ↗ | 8,146 | 30 | - |
| SkillHub ↗ | 1.6万 | 28 | — |
各平台的计数口径不同,统计时间不一致。
技能对接 Meta 广告接口,可管理广告系列、广告组与广告,并读取效果指标。调用需要访问令牌,账户编号在请求里要加固定前缀,只读场景使用只读权限即可。 报表场景使用只读权限。创建、编辑、启用或删除广告资产前,先向用户核对具体账户与变更内容。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-10 | 1.6万 | — | 30 |
| 2026-09 | 7,888 | — | 30 |
| 2026-08 | 6,818 | +4.5% | 30 |
| 2026-07 | 6,524 | — | 29 |
| 2026-05 | 5,814 | — | 28 |
| 2026-03 | 5,099 | — | 28 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- slug: meta-ads display_name: Meta Ads API version: 1.0.0 tags: [latest] --- # Meta Ads API ## Description
Full read/write integration with Meta (Facebook) Ads API for managing campaigns, ad sets, ads, and accessing performance insights/metrics.
## Setup
### Environment Variables
- `META_ACCESS_TOKEN` - Meta access token (User Access Token or System User Token)
- `META_AD_ACCOUNT_ID` - Your ad account ID (numeric, without `act_` prefix)
### Required Permissions
- `ads_read` - Read access to ads data
- `ads_management` - Create, edit, and delete ads
### Token Types
**User Access Token**
- Short-lived: ~2 hours
- Can be extended to 60-90 days
- Obtained via OAuth flow or Graph API Explorer
**System User Token**
- No expiration
- Recommended for production/automated access
- Created in Business Manager
### Authentication
All requests require the access token as a query parameter or header:
```
Authorization: Bearer $META_ACCESS_TOKEN
Content-Type: application/json
```
Or as query parameter:
```
?access_token=$META_ACCESS_TOKEN
```
## API Reference
Base URL: `https://graph.facebook.com/v25.0/`
**Important:** Ad account IDs must be prefixed with `act_` in API calls (e.g., `act_123456789`).
### Ad Account
#### Get Ad Account Info
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID?fields=name,account_status,currency,timezone_name,amount_spent" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
---
### Campaigns
#### List Campaigns
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/campaigns?fields=id,name,status,objective,daily_budget,lifetime_budget,created_time" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Single Campaign
```bash
curl "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}?fields=id,name,status,objective,daily_budget,lifetime_budget,created_time,updated_time" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Create Campaign
```bash
curl -X POST "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/campaigns" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Campaign",
"objective": "OUTCOME_TRAFFIC",
"status": "PAUSED",
"special_ad_categories": []
}'
```
#### Update Campaign
```bash
curl -X POST "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Campaign Name",
"status": "ACTIVE"
}'
```
#### Pause Campaign
```bash
curl -X POST "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "PAUSED"
}'
```
#### Delete Campaign
```bash
curl -X DELETE "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
---
### Ad Sets
#### List Ad Sets
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/adsets?fields=id,name,status,campaign_id,daily_budget,lifetime_budget,targeting,optimization_goal" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Single Ad Set
```bash
curl "https://graph.facebook.com/v25.0/{ADSET_ID}?fields=id,name,status,campaign_id,daily_budget,lifetime_budget,targeting,optimization_goal,bid_amount,billing_event" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Create Ad Set
```bash
curl -X POST "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/adsets" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Ad Set",
"campaign_id": "{CAMPAIGN_ID}",
"daily_budget": 5000,
"billing_event": "IMPRESSIONS",
"optimization_goal": "LINK_CLICKS",
"bid_amount": 200,
"targeting": {
"geo_locations": {
"countries": ["US"]
},
"age_min": 18,
"age_max": 65
},
"status": "PAUSED"
}'
```
**Note:** Budget values are in cents (e.g., 5000 = $50.00).
#### Update Ad Set
```bash
curl -X POST "https://graph.facebook.com/v25.0/{ADSET_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Ad Set Name",
"daily_budget": 10000,
"status": "ACTIVE"
}'
```
#### Pause Ad Set
```bash
curl -X POST "https://graph.facebook.com/v25.0/{ADSET_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "PAUSED"
}'
```
#### Delete Ad Set
```bash
curl -X DELETE "https://graph.facebook.com/v25.0/{ADSET_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
---
### Ads
#### List Ads
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/ads?fields=id,name,status,adset_id,campaign_id,creative,created_time" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Single Ad
```bash
curl "https://graph.facebook.com/v25.0/{AD_ID}?fields=id,name,status,adset_id,campaign_id,creative,tracking_specs,created_time,updated_time" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Create Ad
```bash
curl -X POST "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/ads" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Ad",
"adset_id": "{ADSET_ID}",
"creative": {
"creative_id": "{CREATIVE_ID}"
},
"status": "PAUSED"
}'
```
#### Create Ad with Inline Creative
```bash
curl -X POST "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/ads" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Ad",
"adset_id": "{ADSET_ID}",
"creative": {
"object_story_spec": {
"page_id": "{PAGE_ID}",
"link_data": {
"link": "https://example.com",
"message": "Check out our website!",
"name": "Example Site",
"call_to_action": {
"type": "LEARN_MORE"
}
}
}
},
"status": "PAUSED"
}'
```
#### Update Ad
```bash
curl -X POST "https://graph.facebook.com/v25.0/{AD_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Ad Name",
"status": "ACTIVE"
}'
```
#### Pause Ad
```bash
curl -X POST "https://graph.facebook.com/v25.0/{AD_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "PAUSED"
}'
```
#### Delete Ad
```bash
curl -X DELETE "https://graph.facebook.com/v25.0/{AD_ID}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
---
### Ad Creatives
#### List Ad Creatives
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/adcreatives?fields=id,name,object_story_spec,thumbnail_url" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Create Ad Creative
```bash
curl -X POST "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/adcreatives" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Creative",
"object_story_spec": {
"page_id": "{PAGE_ID}",
"link_data": {
"link": "https://example.com",
"message": "Ad copy text here",
"name": "Headline",
"description": "Description text",
"call_to_action": {
"type": "SHOP_NOW"
}
}
}
}'
```
---
### Insights (Performance Metrics)
#### Get Account-Level Insights
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/insights?fields=spend,impressions,clicks,reach,cpc,cpm,ctr&date_preset=last_30d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Campaign Insights
```bash
curl "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}/insights?fields=spend,impressions,clicks,reach,frequency,cpc,cpm,ctr,actions&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Ad Set Insights
```bash
curl "https://graph.facebook.com/v25.0/{ADSET_ID}/insights?fields=spend,impressions,clicks,reach,cpc,cpm,ctr,actions&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Ad Insights
```bash
curl "https://graph.facebook.com/v25.0/{AD_ID}/insights?fields=spend,impressions,clicks,reach,cpc,cpm,ctr,actions&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Insights with Custom Date Range
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/insights?fields=spend,impressions,clicks,cpc,cpm,ctr&time_range={\"since\":\"2026-01-01\",\"until\":\"2026-01-31\"}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Insights with Breakdowns
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/insights?fields=spend,impressions,clicks,cpc&breakdowns=age,gender&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Insights by Day
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/insights?fields=spend,impressions,clicks&time_increment=1&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
#### Get Insights with Attribution Window
```bash
curl "https://graph.facebook.com/v25.0/{CAMPAIGN_ID}/insights?fields=spend,actions,action_values&action_attribution_windows=[\"7d_click\",\"1d_view\"]&date_preset=last_7d" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
## Campaign Objectives
| Objective | Description |
|-----------|-------------|
| `OUTCOME_AWARENESS` | Brand awareness and reach |
| `OUTCOME_ENGAGEMENT` | Post engagement, page likes, event responses |
| `OUTCOME_TRAFFIC` | Drive traffic to website or app |
| `OUTCOME_LEADS` | Lead generation |
| `OUTCOME_APP_PROMOTION` | App installs and engagement |
| `OUTCOME_SALES` | Conversions and catalog sales |
**Legacy objectives (still supported):**
- `BRAND_AWARENESS`, `REACH`, `LINK_CLICKS`, `POST_ENGAGEMENT`, `VIDEO_VIEWS`, `LEAD_GENERATION`, `CONVERSIONS`, `APP_INSTALLS`
## Targeting Options
### Geographic Targeting
```json
{
"geo_locations": {
"countries": ["US", "CA"],
"regions": [{"key": "4081"}],
"cities": [{"key": "2420379", "radius": 25, "distance_unit": "mile"}],
"zips": [{"key": "US:90210"}]
}
}
```
### Demographic Targeting
```json
{
"age_min": 25,
"age_max": 54,
"genders": [1, 2]
}
```
Gender values: `1` = Male, `2` = Female
### Interest Targeting
```json
{
"flexible_spec": [{
"interests": [{"id": "6003139266461", "name": "Technology"}]
}]
}
```
## Budget Types
| Type | Description |
|------|-------------|
| `daily_budget` | Maximum spend per day (in cents) |
| `lifetime_budget` | Total budget for campaign/ad set duration (in cents) |
**Important:** Budget values are in the smallest currency unit (cents for USD). Example: `5000` = $50.00
## Status Values
| Status | Description |
|--------|-------------|
| `ACTIVE` | Currently running |
| `PAUSED` | Manually paused |
| `DELETED` | Soft deleted |
| `ARCHIVED` | Archived, not running |
## Available Metrics
| Metric | Description |
|--------|-------------|
| `spend` | Total amount spent |
| `impressions` | Number of times ads were shown |
| `clicks` | Number of clicks on ads |
| `reach` | Number of unique people who saw ads |
| `frequency` | Average number of times each person saw your ad |
| `cpc` | Cost per click |
| `cpm` | Cost per 1,000 impressions |
| `ctr` | Click-through rate (clicks / impressions) |
| `cpp` | Cost per 1,000 people reached |
| `actions` | Total actions (conversions) broken down by type |
| `action_values` | Value of conversions |
| `conversions` | Number of conversions |
| `cost_per_action_type` | Cost per action by type |
## Attribution Windows
| Window | Description |
|--------|-------------|
| `1d_click` | 1-day click attribution |
| `7d_click` | 7-day click attribution (default) |
| `28d_click` | 28-day click attribution |
| `1d_view` | 1-day view-through attribution |
**Note:** As of January 2026, 7-day view (`7d_view`) and 28-day view (`28d_view`) attribution windows have been removed. Only `1d_view` remains for view-through attribution.
## Breakdowns
| Breakdown | Description |
|-----------|-------------|
| `age` | Age ranges (18-24, 25-34, etc.) |
| `gender` | Male, Female, Unknown |
| `placement` | Where ad was shown (feed, stories, etc.) |
| `device_platform` | Device type (mobile, desktop) |
| `platform_position` | Position within platform |
| `publisher_platform` | Facebook, Instagram, Audience Network |
| `country` | Country of viewer |
| `region` | Region/state of viewer |
## Date Presets
| Preset | Description |
|--------|-------------|
| `today` | Today only |
| `yesterday` | Yesterday only |
| `this_month` | Current month |
| `last_month` | Previous month |
| `last_7d` | Last 7 days |
| `last_14d` | Last 14 days |
| `last_28d` | Last 28 days |
| `last_30d` | Last 30 days |
| `last_90d` | Last 90 days |
## Pagination
The API uses cursor-based pagination. Responses include a `paging` object with cursors.
```json
{
"data": [...],
"paging": {
"cursors": {
"before": "abc123",
"after": "xyz789"
},
"next": "https://graph.facebook.com/v25.0/..."
}
}
```
To get the next page:
```bash
curl "https://graph.facebook.com/v25.0/act_$META_AD_ACCOUNT_ID/campaigns?fields=id,name&after={AFTER_CURSOR}" \
-H "Authorization: Bearer $META_ACCESS_TOKEN"
```
**Limits:**
- Default: 25 records per page
- Maximum: 5000 records per page (use `limit` parameter)
## Rate Limits
Rate limits are calculated per ad account using the formula:
```
Call Limit = 60 + (400 × Active Ads) - (0.001 × API Errors)
```
- Minimum: 60 calls per hour
- Increases with more active ads
- Decreases with API errors
**Handling Rate Limits:**
- Check `X-Business-Use-Case-Usage` header for current usage
- Implement exponential backoff when receiving 429 responses
- Start with 1 second delay, double on each retry (max 5 retries)
## Token Management
### Extending User Access Tokens
Short-lived user tokens (~2 hours) can be exchanged for long-lived tokens (60-90 days):
```bash
curl "https://graph.facebook.com/v25.0/oauth/access_token?grant_type=fb_exchange_token&client_id={APP_ID}&client_secret={APP_SECRET}&fb_exchange_token={SHORT_LIVED_TOKEN}"
```
Response:
```json
{
"access_token": "long_lived_token_here",
"token_type": "bearer",
"expires_in": 5184000
}
```
### Debugging Tokens
Check token validity and permissions:
```bash
curl "https://graph.facebook.com/v25.0/debug_token?input_token={TOKEN_TO_CHECK}&access_token={APP_ID}|{APP_SECRET}"
```
### Recommended: System User Tokens
For production use, create a System User in Business Manager:
1. Go to Business Settings > Users > System Users
2. Create a new System User with "Admin" role
3. Assign the ad account to the System User
4. Generate a token with `ads_read` and `ads_management` permissions
System User tokens do not expire.
## Changelog
### v1.0.0
- Initial release with full read/write access
- Ad Account: get info
- Campaigns: list, get, create, update, pause, delete
- Ad Sets: list, get, create, update, pause, delete with targeting
- Ads: list, get, create, update, pause, delete
- Ad Creatives: list, create
- Insights: account/campaign/adset/ad level with all metrics
- Support for breakdowns, date ranges, and attribution windows
- Campaign objectives and targeting documentation
- Budget types (daily/lifetime) in cents
- Pagination documentation
- Rate limits and token management
百炼®标书是一个面向投标场景标书写作的skill,可以帮用户完成四件事:解读招标文件、生成投标文件、审查投标文件合规风险以及标书查重。它适合用自然语言直接写作,用户只要提供文件和需求,就能拿到解读结果、成品标书、审查报告、查重报告。百炼®标书官网:https://biaoshu.zhiliaobiaoxun.com
AdMapix广告原始数据层,广告创意/应用/排名/下载收入
知了标讯:查询和分析招标、中标、供应商与采购市场信息。
通过知了标讯接口查询和分析招投标相关信息。
喜鹊标书审查|让投标风险看得见、查得清、改得准 投标文件准备好了,还有哪些遗漏和隐患?喜鹊标书审查对照招标要求,检查投标文件中的响应缺漏、内容矛盾和潜在风险,帮助您在提交前发现问题、明确修改重点。 - 问题一目了然:区分已确认风险与待核实事项,清晰呈现问题位置、具体表现及潜在影响。 - 审查有据可查:关联招标条款与投标内容,让您看清“要求是什么、哪里存在问题、判断依据是什么”。 - 原文快速定位:结合页码、检索线索和证据截图,减少来回翻找,方便逐项核对。 - 完整报告可交付:提供 Word 审查报告及审查版 PDF,便于团队复核、修改和留档。 支持 PDF、DOCX 及多附件审查。先检查文件,再展示价格并按次付费;支持随时查询进度、继续已付款任务和补领报告,让每一次审查都有清晰结果。 https://www.xiquebiaoshu.com/?source=skillhub](https://www.xiquebiaoshu.com/?source=bid-review-pay
为 AI agent 提供电话号码并代办电话事务的技能。
将真实产品照片制作成影棚级电商主图、场景图或面向市场平台的高清商品图。这款 AI 商品图工作室用于商品图片处理和电商图片编辑,可替换背景、改善光效、搭建场景。它以原图中的商品外观特征为依据,从一张手机随拍就能做出白底主图、生活场景图和高级广告图。适用于亚马逊白底产品图、淘宝主图、Shopify 产品大图和社交媒体商品图。从一张产品照片出发,组合多张参考图,或在选定草稿上做定向精修,完成适合上架使用的成品;生活场景图和广告图也能直接用作商品详情页图片。
【零一数科·出品】会员体系搭建(免费版)。为私域用户设计会员体系搭建,产出会员等级成长表、积分获取消耗规则表、权益配置矩阵、积分财务测算表四件套。适用于会员积分体系设计、会员等级阶梯、成长值规则、权益配置、积分获取与消耗、积分财务测算、私域会员运营。
数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。