PeumeAPI

Ads

List ad sets

Lists ad sets (ad groups on Google) with their targeting, bidding and optimization settings, optionally for one campaign.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/list-ad-sets \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "page": 1,
    "limit": 500,
    "live": false,
    "view": "full"
  }
}'

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: list-ad-sets.

Parameters

accountIdstring

Account ID

adAccountIdstring

Platform ad account id (Meta act_<n>). Lists every synced ad set of that ad account; no campaignId needed.

campaignIdstring

Platform campaign ID

adSetIdstring

Platform ad set ID

platformstring

facebook · instagram · tiktok · linkedin · pinterest · google · twitter · openai · reddit · snapchat

statusstring

Filter by the ad set's stored `status`, the value each row returns. A live read does not change it. Rows whose `status` is null match no filter.

pageinteger

Example: 1

limitinteger

Example: 500

liveboolean

Read the on/off switches live from the platform instead of returning synced values. See "Status freshness" in the operation description. - The fresh values are stored (later reads return them too), and the response carries `statusReadAt`, the time of the read. - At most 20 platform objects are read per request. - Where a read fails (credentials, platform error, no reader on that platform), stored values come back with `statusReadAt: null`. **On GET /v1/ads/{adId} for a TikTok ad** the creative is read live too: ad text, call to action, landing page, video, format and identity, returned over

Example: false

viewstring

`full` returns every field. `summary` leaves `targeting` out of each ad set, which is most of a row's size; read one ad set's targeting with `adSetId` and `view=full`.

full · summary

Example: full

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.