PeumeAPI

Ads

Read an ad account's campaigns and ad sets live

Reads an ad account's campaigns and ad sets straight from Meta, TikTok or Pinterest, so checks like budget limits see current values.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/read-an-ad-account-s-campaigns-and-ad-sets \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId",
    "status": "ACTIVE",
    "limit": 200
  }
}'

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: read-an-ad-account-s-campaigns-and-ad-sets.

Parameters

accountIdRequiredstring

SocialAccount id (posting or ads variant) used to resolve the platform token.

adAccountIdRequiredstring

Meta ad account id (act_<n>), TikTok advertiser id (digits) or Pinterest ad account id (digits).

statusstring

Comma-separated Meta `effective_status` values to keep: ACTIVE, PAUSED, IN_PROCESS, WITH_ISSUES, DELETED, ARCHIVED, and CAMPAIGN_PAUSED (ad sets only; the campaigns level ignores it). Defaults to every status except DELETED and ARCHIVED. An unknown value is a 400. TikTok takes a single value: ACTIVE, PAUSED or DELETED. Pinterest takes ACTIVE, PAUSED and ARCHIVED (see the description).

Example: ACTIVE

levelstring

Read only one level. Required with `after`. Both levels are read when omitted.

campaign · adSet

limitinteger

Maximum rows per level in this response.

Example: 200

afterstring

Cursor from `paging.campaigns.after` or `paging.adSets.after` of a previous response. Requires `level` (and on TikTok the same `limit`).

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.