PeumeAPI

Ads

Update a conversion destination

Changes a LinkedIn conversion rule's name, value, attribution windows, or turns it on or off.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/update-a-conversion-destination \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "destinationId": "your destinationId",
    "accountId": "your accountId",
    "adAccountId": "your adAccountId"
  }
}'

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: update-a-conversion-destination.

Parameters

destinationIdRequiredstring
accountIdRequiredstring

The connected ads account (SocialAccount ID).

adAccountIdRequiredstring
namestring
enabledboolean

Setting `false` is equivalent to calling DELETE: the rule will appear as `inactive` afterwards.

attributionTypestring

LAST_TOUCH_BY_CAMPAIGN · LAST_TOUCH_BY_CONVERSION

postClickAttributionWindowSizeinteger

365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.

1 · 7 · 30 · 90 · 365

viewThroughAttributionWindowSizeinteger

365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.

1 · 7 · 30 · 90 · 365

valueTypestring

DYNAMIC · FIXED · NO_VALUE

valueobject

Used when `valueType=FIXED`.

Start free · $1 of calls included

Every API your business needs. One key.

7,267 data and AI APIs behind one key, with backup sources built in.