agentleFS
adkitadkit/ads-skills/skills/meta-ads/SKILL.md

meta-ads

Skill40 starsChanged 2 days agoMITView on GitHub

Create, edit, and report on Meta (Facebook and Instagram) ads from an AI agent through the AdKit MCP connector: campaigns, ad sets, ads, carousels, media upload, interest search, and results. Every change is saved as a draft that the user approves before it goes live. Use when the user wants to run, change, or check Facebook or Instagram ads. Not for Meta ad strategy: use meta-ads-strategy for that.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use google-analytics, local-seo and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • refly-aiSkill

    google-analytics

    Integrate with Google Analytics for web metrics. Use when you need to: (1) retrieve website analytics reports, (2) track traffic and user metrics, or (3) analyze web performance data.

    Also in 3 projects that use this

  • huiferSkill

    local-seo

    本地 SEO 分析和优化专家。自动检测项目是否需要本地 SEO,分析 NAP(Name, Address, Phone)一致性、本地关键词优化、Google Business Profile (GBP) 优化和本地结构化数据生成。提供本地商家搜索引擎排名优化建议,包括 NAP 标准化、本地关键词策略、GBP 完整性检查、评论策略、地图嵌入和本地 SEO 审计。

    Also in 3 projects that use this

  • indranilbanerjeeSkill

    keyword-research

    Research keywords via the connected data source: intent, gaps. Grouping → keyword-cluster. \"what keywords should we target\"

    Also in 3 projects that use this

  • AnthropicSkill

    onboarding

    Generate an onboarding checklist and first-week plan for a new hire. Use when someone has a start date coming up, building the pre-start task list (accounts, equipment, buddy), scheduling Day 1 and Week 1, or setting 30/60/90-day goals for a new team member.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Claude, ChatGPT, and most AI apps: add a custom connector with the address https://mcp.adkit.so, then sign in.

    line 34
  2. Very specific:

    All calls go through adkit_manage with platform: "meta".

    line 57
  3. Very specific:

    Project: call adkit_projects and get the projectId.

    line 59
  4. Very specific:

    Account: call adkit_status. If no Meta account is connected, call adkit_setup with platform: "meta" and give the user the link.

    line 60
  5. Very specific:

    Wait for a yes. Then publish it with drafts publish.

    line 64
  6. Distinctive:

    Use the Meta ID that the publish result returns as the parent of the next level.

    line 65
  7. Distinctive:

    Use AdKit field names (camelCase).

    line 83
  8. Distinctive:

    Check every path and field in the Meta Marketing API reference.

    line 89
  9. Distinctive:

    Read requests run immediately, with no draft.

    line 90
  10. Very specific:

    After you use it, report the missing feature with adkit_feedback.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Meta Ads with AdKit

This skill tells you how to create, edit, and report on Facebook and Instagram ads through AdKit. It covers the steps. For what to build (objective, audience, creative, budget), read the meta-ads-strategy skill.

Connect AdKit

AdKit is one MCP connector for Meta, Google, TikTok, LinkedIn, Microsoft, Reddit, X, and Pinterest ads.

  • Claude, ChatGPT, and most AI apps: add a custom connector with the address https://mcp.adkit.so, then sign in.
  • Claude Code: claude mcp add --transport http adkit https://mcp.adkit.so

For other AI apps, see how to set up the AdKit MCP server for Meta Ads. If the AdKit tools are not available, tell the user how to connect. Then stop.

What AdKit can do on Meta

EntityActions
campaignslist, get, create, update, delete
adsetslist, get, create, update, delete
adslist, get, create, update, delete
medialist, upload, delete (images and videos)
researchinterests (find interest IDs for targeting)
lead-formslist (existing Instant Forms of a Facebook Page)
conversionslist (custom conversions and recent pixel events)
resultslist (spend, impressions, clicks, conversions, ROAS)
accountslist, available, connect, disconnect, update, pages, pixels
draftsget, publish (review your changes, then send them)
creativescreate, update, delete (advanced; normal ads do not need this)

Steps

All calls go through adkit_manage with platform: "meta". Before a call you have not made in this session, read its fields with adkit_help({ path: "manage meta <entity> <action>" }). Do not guess field names. In this skill, campaigns create means entity: "campaigns", action: "create".

  1. Project: call adkit_projects and get the projectId. Every call needs it.
  2. Account: call adkit_status. If no Meta account is connected, call adkit_setup with platform: "meta" and give the user the link. After they sign in, use accounts available, then accounts connect.
  3. Account defaults: find the Facebook Page with accounts pages and the pixel with accounts pixels. Save them with accounts update (defaultPageId, defaultPixelId). To also run ads under an Instagram account, ask the user for its ID and save it as defaultInstagramUserId. This change applies immediately, with no draft.
  4. Build from the top down. Each create saves a draft. For each level, do these steps before you start the next level:

    • Show the draft to the user (drafts get, or the link https://app.adkit.so/manage/drafts?open=<draftId>).
    • Wait for a yes. Then publish it with drafts publish.
    • Use the Meta ID that the publish result returns as the parent of the next level. A draft ID never works as a parent ID.

    The levels, in order:

    1. Campaign: campaigns create with a name, an objective, and status: "paused". A paused campaign spends nothing.
    2. Ad set: adsets create with the campaignId, budget, optimization, and targeting. Use research interests to get interest IDs.
    3. Media: media upload from a public URL. It returns an imageHash or a videoId. For a local file: call adkit_manage with entity: "media" and action: "request_upload_url" (no platform). It returns an upload URL. Send the file to that URL with PUT. Then call media upload with source: "temporary_upload".
    4. Ad: ads create with the adsetId, the copy, the URL, and the creative.
  5. Go live: campaigns update with status: "active". Publish that draft only after the user says yes. Then check with adsets list and ads list that the ad sets and ads are active too.
  6. Results: results list with a level and a period or a date range (from and to).

Meta rules

  • The campaign objective limits which optimization goals the ad set can use.
  • An ad takes one creative source: media (one image or video), carouselCards, existingPostId (promote an existing post), or creativeId. Use ads, not creatives, for normal ads. AdKit builds the creative.
  • campaigns, adsets, and ads list actions return settings only. Spend and conversions come from results.
  • conversions shows what is tracked, not how many conversions happened.
  • Ads shown in the EU need beneficiary and payer details. Save them once with accounts update (dsaDefaults).
  • Use AdKit field names (camelCase). The entities in the table above ignore raw Meta API field names.

Anything else in the Meta API

For a Meta feature that AdKit does not cover, use entity: "platform-api-request" with action: "mutate". The action is always mutate, also for reads. AdKit sends the request to the Meta Marketing API as it is. The user must turn on Advanced Platform Access in AdKit's Agent Permissions.

  • Check every path and field in the Meta Marketing API reference.
  • Read requests run immediately, with no draft. Writes save a draft, like any other change.
  • After you use it, report the missing feature with adkit_feedback.
{
  "projectId": "<projectId>",
  "entity": "platform-api-request",
  "action": "mutate",
  "data": {
    "platform": "meta",
    "accountId": "act_<accountId>",
    "endpoint": "act_<accountId>/campaigns",
    "method": "POST",
    "payload": {
      "name": "Test campaign",
      "objective": "OUTCOME_TRAFFIC",
      "status": "PAUSED",
      "special_ad_categories": []
    },
    "description": "Create a paused traffic campaign"
  }
}

Other platforms

The same AdKit connector runs Google Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Reddit Ads, X Ads, and Pinterest Ads ads. Each platform has its own skill in this repo, for example google-ads and tiktok-ads.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.