Advertiser API

Run campaigns from your own tools

One API key lists campaigns, creates ads, and opens a deposit link. The same key connects Claude, Cursor, and ChatGPT.

Put in €50, get €100

Sign up as an advertiser. The first deposit of €50 is matched once. How the offer works

What you can do

  • List campaigns, ads, daily stats, the wallet, and transactions.
  • Create and update campaigns and ads.
  • Pause or resume a campaign.
  • Create an ad from a landing page URL.
  • Open a Stripe link to add funds.
  • Estimate impressions and clicks for a budget from recent delivery.

What to know before you call it

  1. Create the key in Ads Manager, under Settings, then API keys. It starts with idl_adv_.
  2. read and write are separate scopes. write does not include read. Each key allows 120 requests per minute.
  3. A new ad stays pending until a person moderates it. Changing the headline, body, button, link, or image sends it back to pending.
  4. The first campaign you create through the API cannot be turned on from the API. The error is first_campaign_requires_dashboard_validation and includes a link to that campaign in the dashboard.
  5. Amounts are euro cents.

REST quickstart

Replace the host with your Supabase project URL. GET needs the read scope. POST and PATCH need the write scope.

curl 'https://<project-ref>.supabase.co/functions/v1/advertiser-api/campaigns' \
  -H 'Authorization: Bearer idl_adv_YOUR_KEY'

curl -X POST 'https://<project-ref>.supabase.co/functions/v1/advertiser-api/campaigns' \
  -H 'Authorization: Bearer idl_adv_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: campaign-2026-11-04' \
  -d '{
    "name": "Spring launch",
    "objective": "traffic",
    "budget_type": "daily",
    "budget_cents": 2000
  }'

Connect Claude, Cursor, or ChatGPT

The MCP server uses the same key, the same scopes, and the same 120 requests per minute. Send the key as a Bearer token.

Claude Desktop and Claude Code

{
  "mcpServers": {
    "idlen-advertiser": {
      "type": "http",
      "url": "https://<project-ref>.supabase.co/functions/v1/advertiser-mcp",
      "headers": {
        "Authorization": "Bearer idl_adv_YOUR_KEY"
      }
    }
  }
}

Cursor

{
  "mcpServers": {
    "idlen-advertiser": {
      "url": "https://<project-ref>.supabase.co/functions/v1/advertiser-mcp",
      "headers": {
        "Authorization": "Bearer idl_adv_YOUR_KEY"
      }
    }
  }
}

Put this in .cursor/mcp.json or in Cursor Settings, then MCP.

ChatGPT and any other remote MCP client

URL
https://<project-ref>.supabase.co/functions/v1/advertiser-mcp

Header
Authorization: Bearer idl_adv_YOUR_KEY

Use this URL and header. The client must accept application/json and text/event-stream.

OpenAPI

Routes, fields, and error codes are in the OpenAPI document.

advertiser-api.yaml

Full reference on docs.idlen.io

Put in €50, get €100