> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended**:
> ```bash
> npx @scalekit-inc/cli setup
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for 40+ agents.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Meta Ads connector

1. ### Install the SDK

   ```bash frame="terminal"
       npm install @scalekit-sdk/node
       ```
     ```bash frame="terminal"
       pip install scalekit
       ```
     Full SDK reference: [Node.js](/agentkit/sdks/node/) | [Python](/agentkit/sdks/python/)

2. ### Set your credentials

   <AgentKitCredentials />

3. ### Set up the connector

   Register your Meta Ads credentials with Scalekit so it handles the token lifecycle. You do this once per environment.

   <details>
   <summary>Dashboard setup steps</summary>

   <SetupMetaadsSection />

   </details>

4. ### Authorize and make your first call

   <QuickstartGenericOauthSection connector="metaads" toolName="metaads_account_insights_get" providerName="Meta Ads" toolInputNode="{ ad_account_id: 'YOUR_AD_ACCOUNT_ID' }" toolInputPython='{"ad_account_id":"YOUR_AD_ACCOUNT_ID"}' />

## What you can do

Connect this agent connector to let your agent:

- **Interests targeting validate** — Validate a list of known interest IDs or names as still targetable (type=adinterestvalid), or get related interest suggestions to expand an audience from a set of existing interests (type=adinterestsuggestion)
- **Search targeting** — Search or validate geographic targeting locations (countries, regions, cities, zips, electoral districts), bulk-fetch metadata for known location keys, or get a suggested radius size for radius-based targeting around a point
- **Get targeting, productset, productitem** — Check whether specific targeting options (interest, behavior, demographic, or other targeting-taxonomy IDs you already have) are currently deliverable, deprecating, or blocked from exclusion use
- **Run report** — Check the processing status and completion percentage of an asynchronous Ads Insights report run
- **Update productset, productitem, productcatalog** — Update an existing product set's name, filter rule, metadata, retailer ID, or Shop placements
- **List productset, productitem** — List the product items that currently belong to (match the filter of) a specific product set

## Tool list

Use the exact tool names from the **Tool list** below when you call `execute_tool`. If you're not sure which name to use, list the tools available for the current user first.

<ToolList tools={tools} />

---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
