PeumeAPI

Ads

Create a conversion destination

Creates a new place to send conversion events: a Google Ads conversion action or a LinkedIn conversion rule.

$0.002 per callRuns on an account you connect

Call it

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

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

Parameters

accountIdRequiredstring

The connected ads account (SocialAccount ID).

adAccountIdRequiredstring

Ad account ID. For LinkedIn: numeric (e.g. "5123456") or full `urn:li:sponsoredAccount:{id}` URN. For Google: numeric customer ID (e.g. "1234567890") or `customers/{id}` form.

nameRequiredstring
typeRequiredstring

Conversion type. Unknown values pass through to the platform. - LinkedIn: a unified standard event name (e.g. "Purchase", "Lead", "AddToCart") or a LinkedIn rule type enum (e.g. "PURCHASE", "QUALIFIED_LEAD"). - Google: a unified standard event name (Purchase, Subscribe, CompleteRegistration, Lead, Schedule) or a Google ConversionActionCategory enum value directly (e.g. "PURCHASE", "SUBSCRIBE_PAID", "SIGNUP", "IMPORTED_LEAD", "BOOK_APPOINTMENT").

attributionTypestring

LinkedIn only.

LAST_TOUCH_BY_CAMPAIGN · LAST_TOUCH_BY_CONVERSION

postClickAttributionWindowSizeinteger

LinkedIn only. Default 30. 365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types; the API rejects other combinations locally.

1 · 7 · 30 · 90 · 365

viewThroughAttributionWindowSizeinteger

LinkedIn only. Default 7. Same 365-day-window type restriction applies as `postClickAttributionWindowSize`.

1 · 7 · 30 · 90 · 365

valueTypestring

LinkedIn only. DYNAMIC (default) uses the per-event `value` from `sendConversions`. FIXED uses the rule's `value` field. NO_VALUE drops monetary value entirely.

DYNAMIC · FIXED · NO_VALUE

valueobject

LinkedIn only. Static conversion value. Used when `valueType=FIXED`. The currency should match the ad account's currency.

autoAssociationTypestring

LinkedIn only. Controls campaign association at rule-creation time: - ALL_CAMPAIGNS: associate the rule with every active, paused, and draft campaign in the ad account. - OBJECTIVE_BASED: associate only campaigns whose objective matches the rule's type. - NONE: don't auto-associate. Manage associations via the `/associations` endpoints below. Auto-association runs once at create time; campaigns added after the rule still need explicit association.

ALL_CAMPAIGNS · OBJECTIVE_BASED · NONE

Example: ALL_CAMPAIGNS

countingTypestring

Google Ads only. Whether to count multiple conversions from the same click (MANY_PER_CLICK) or at most one (ONE_PER_CLICK). Defaults to MANY_PER_CLICK if omitted.

MANY_PER_CLICK · ONE_PER_CLICK

primaryForGoalboolean

Google Ads only. When true, the conversion action is marked as primary and immediately influences Smart Bidding. Defaults to false (secondary, record-only) to avoid unintentionally steering the customer's campaigns on creation.

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.