zachgodsell93

Meta Ads

商業營運v1.0.0
作者:zachgodsell93更新於 2026-05-18meta-ads@clawhub_zachgodsell93/meta-ads
銷售助手電商營運

據 AlphaMoat 統計,截至 2026-10,Meta Ads 累計下載 16,205 次、獲 30 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 1,735 位,在「商業營運」分類(873 個)中排名第 145 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
1.6萬
星標
30
全站下載量排名
#1,735
全站前 16% · 「商業營運」前 17%
平台累計下載星標評論
ClawHub ↗814630-
SkillHub ↗1.6萬28—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

技能對接 Meta 廣告介面,可管理廣告系列、廣告組與廣告,並讀取效果指標。呼叫需要訪問令牌,帳戶編號在請求裡要加固定字首,只讀場景使用只讀許可權即可。 報表情境使用唯讀權限。建立、編輯、啟用或刪除廣告資產前,先向使用者核對具體帳戶與變更內容。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢視各廣告系列的花費與轉化指標
  • 調整廣告組預算或暫停表現差的廣告

什麼時候用

  • 需要定期核對投放資料時
  • 要在指令碼里批次調整廣告狀態時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

把這個帳戶下各廣告系列上週的花費和轉化拉出來對比
幫我暫停點選成本最高的那個廣告組,先列出它的現狀

月度資料趨勢

累計下載1.6萬
42111.1萬1.7萬2026-03 · 累計下載 50992026-05 · 累計下載 58142026-07 · 累計下載 65242026-08 · 累計下載 68182026-09 · 累計下載 78882026-10 · 累計下載 1.6萬26-0326-0926-10
星標30
2829302026-03 · 星標 282026-05 · 星標 282026-07 · 星標 292026-08 · 星標 302026-09 · 星標 302026-10 · 星標 3026-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-101.6萬—30
2026-097888—30
2026-086818+4.5%30
2026-076524—29
2026-055814—28
2026-035099—28

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

15 KB · ClawHub v1.0.0
---
slug: meta-ads
display_name: Meta Ads API
version: 1.0.0
tags: [latest]
---

# Meta Ads API

## Description
展開全部(共 612 行)

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

↓ 70.7萬★ 61u_62be253f
AdMapix廣告投放工具商業營運

AdMapix廣告原始資料層,廣告創意/應用/排名/下載收入

↓ 30.9萬★ 1u_8ee34d77
全國招標中標查詢及分析【知了標訊】商業營運

知了標訊:查詢和分析招標、中標、供應商與採購市場資訊。

↓ 21.4萬★ 14user_98035bfb
招標中標查詢及分析服務商業營運

透過知了標訊介面查詢和分析招投標相關資訊。

↓ 12.1萬★ 16user_98035bfb
標書審查【喜鵲標書】商業營運

喜鵲標書審查|讓投標風險看得見、查得清、改得準 投標檔案準備好了,還有哪些遺漏和隱患?喜鵲標書審查對照招標要求,檢查投標檔案中的響應缺漏、內容矛盾和潛在風險,幫助您在提交前發現問題、明確修改重點。 - 問題一目瞭然:區分已確認風險與待核實事項,清晰呈現問題位置、具體表現及潛在影響。 - 審查有據可查:關聯招標條款與投標內容,讓您看清“要求是什麼、哪裡存在問題、判斷依據是什麼”。 - 原文快速定位:結合頁碼、檢索線索和證據截圖,減少來回翻找,方便逐項核對。 - 完整報告可交付:提供 Word 審查報告及審查版 PDF,便於團隊複核、修改和留檔。 支援 PDF、DOCX 及多附件審查。先檢查檔案,再展示價格並按次付費;支援隨時查詢進度、繼續已付款任務和補領報告,讓每一次審查都有清晰結果。 https://www.xiquebiaoshu.com/?source=skillhub](https://www.xiquebiaoshu.com/?source=bid-review-pay

↓ 10.5萬★ 1u_84923c62
PollyReach商業營運

為 AI agent 提供電話號碼並代辦電話事務的技能。

↓ 10.2萬★ 56PollyReach
商品圖商業營運

將真實產品照片製作成影棚級電商主圖、場景圖或面向市場平台的高畫質商品圖。這款 AI 商品圖工作室用於商品圖片處理和電商圖片編輯,可替換背景、改善光效、搭建場景。它以原圖中的商品外觀特徵為依據,從一張手機隨拍就能做出白底主圖、生活場景圖和高階廣告圖。適用於亞馬遜白底產品圖、淘寶主圖、Shopify 產品大圖和社交媒體商品圖。從一張產品照片出發,組合多張參考圖,或在選定草稿上做定向精修,完成適合上架使用的成品;生活場景圖和廣告圖也能直接用作商品詳情頁圖片。

↓ 10.2萬★ 10user_87b8e34f
會員體系搭建商業營運

【零一數科·出品】會員體系搭建(免費版)。為私域使用者設計會員體系搭建,產出會員等級成長表、積分獲取消耗規則表、權益配置矩陣、積分財務測算表四件套。適用於會員積分體系設計、會員等級階梯、成長值規則、權益配置、積分獲取與消耗、積分財務測算、私域會員營運。

↓ 9.7萬★ 8u_c19e970c

zachgodsell93 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。