naz-geotrip

Meta Ads Targeting — Development skill for Claude Code

Development community

Claude skills that pull real Meta ad targeting IDs from the Marketing API, price their reach by geography, and hand them to a Facebook Ads MCP as a validated CSV.

How to install Meta Ads Targeting

This entry records only its repository, not the path inside it, so there is no exact command to give. Open naz-geotrip/meta-ads-targeting and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Meta Ads Targeting does

Claude skills that pull real Meta ad targeting IDs from the Marketing API, price their reach by geography, and hand them to a Facebook Ads MCP as a validated CSV.

Alternatives in Development

  • Google Ads Meta Ads MCP — Google Ads MCP server + Meta Ads MCP (Facebook Ads MCP) + GA4 + Search Console in one hosted remote MCP for Cl 3.2k ★
  • Claudes C Compiler — Claude Opus 4.6 wrote a dependency-free C compiler in Rust, with backends targeting x86 (64- and 32-bit), ARM 2.6k ★
  • Portaljs Add Geo — Auto-ingest a geospatial file (GeoJSON, Shapefile, GeoPackage, KML/KMZ, FlatGeobuf, CSV-with-geometry) into a 2.3k ★

README

meta-ads-targeting

Claude skills for pulling **real** Meta ad targeting IDs out of the Marketing API, validating them, and handing them to a Facebook Ads MCP as a CSV.

The problem this solves

Facebook Ads MCP servers can create ad sets but cannot look up targeting IDs. `ads_create_ad_set` says so directly:

Do NOT invent interest IDs — interest targeting requires real numeric IDs from the Facebook Targeting Search API.

So Claude can build you an ad set, but not populate its audience. This fills that gap.

There is a second, nastier problem. Most guides and blog posts tell you to browse the targeting catalogue with:

GET /search?type=adTargetingCategory&class=behaviors

**That endpoint does not exist.** It returns `400 · code 100 / subcode 33` on v12.0, v18.0 and v24.0, with or without a valid `ads_read` token, with or without the version segment. The error reads like a permissions problem, so people spend hours regenerating tokens that were never the issue. The working call is `/act_/targetingbrowse`, and `references/endpoints.md` documents it along with everything else that was verified live.

Install

/plugin marketplace add naz-geotrip/meta-ads-targeting
/plugin install meta-ads-targeting

What you get

Two skills, deliberately separate.

`meta-ads-app-setup` — runs once, ever

Creates a Business-type Meta app with the Marketing API use case, mints an `ads_read` token, picks your ad account, and writes the config. Also handles token-only regeneration later without touching the app.

Needs your browser, because Meta has no API for creating an app or minting a System User token. It asks permission before touching Chrome. Two steps are yours to click: a password confirmation and a permission dialog. Claude does neither on your behalf.

`meta-targeting-ids` — runs every time

Reads the config, retrieves IDs, validates them, writes a CSV, and recommends which to actually buy. Pure HTTP, no browser.

It is **hard-blocked fro