What You'll Need


Step 1: Get Your Meta API Token

This is the only technical step — everything else is just typing questions.

1.1 — Open the Meta Developer Portal and go through the “Create App Flow” 1.2 — You’ll need to create an app to get an app token. The app token is what you use to access your data through the Meta API. 1.3 — The app you create gets associted to your Meta Business Manager so just ensure that whatever ad accounts you’re trying to access are connected to your Meta BM.


Step 2: Set Up the Script

Download this file and put it in the folder that you’re going to be using claude code in

Open Claude Code, then paste this prompt — replacing the token with yours from Step 1:

`I have a file here called "meta-ads-utility" - its a utility file to access meta ad data via the API. Please install anything needed to run it, then connect to my Meta ad account using this API token: [PASTE YOUR TOKEN HERE]

Once connected, run a quick test to and show me the ad accounts you see that I have access to.`

Claude will handle the installation, connect to your account, and confirm it's ready.

That's it — Claude will read the script, connect to your account, and start pulling data.


Example Prompts to Try

📊 Performance Reports