PeumeAPI

Ads

Create custom conversion

Creates a Meta custom conversion for ads to optimise toward, reusing an existing one with the same name and pixel.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/create-custom-conversion \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId",
    "name": "your name",
    "pixelId": "your pixelId",
    "customEventType": "your customEventType",
    "rule": "your rule"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-custom-conversion.

Parameters

accountIdRequiredstring

The connected ads account (SocialAccount ID).

adAccountIdRequiredstring

Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id,...).

nameRequiredstring

Also the reuse key, together with pixelId.

pixelIdRequiredstring

Meta pixel id (event_source_id). From GET /v1/accounts/{accountId}/tracking-tags.

customEventTypeRequiredstring

Meta custom_event_type, e.g. LEAD, PURCHASE, OTHER.

ruleRequiredobject

Meta conversion rule, forwarded verbatim.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.