PeumeAPI

Ads

Create conversion action

Creates a Google Ads conversion action: a website one counted by a tag on your site, or one counted from the conversions you send to.

$0.002 per callRuns on an account you connect

Call it

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

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-conversion-action.

Parameters

stageboolean

Send true to store this write as a staged change instead of applying it. The response is `202` with the change, and POST /v1/ads/changes/{changeId}/confirm applies it later. Cannot be combined with `validateOnly`.

accountIdRequiredstring

SocialAccount ID. Must be a `googleads` account.

adAccountIdstring

Platform ad account ID (Google customer ID, digits only). Resolved automatically when the connection has exactly one accessible customer.

customerIdstring

Alias of adAccountId, kept for existing callers

nameRequiredstring
typeRequiredstring

WEBPAGE for a website tag, UPLOAD_CLICKS for the conversions you send to.

WEBPAGE · UPLOAD_CLICKS

defaultValuenumber

Default conversion value used when an event doesn't carry its own value.

alwaysUseDefaultValueboolean

When true, always use defaultValue and ignore any value sent with the event. Defaults to true when defaultValue is set.

categorystring

conversion_action.category. Defaults to DEFAULT on create.

DEFAULT · PAGE_VIEW · PURCHASE · SIGNUP · DOWNLOAD · ADD_TO_CART · BEGIN_CHECKOUT · SUBSCRIBE_PAID · PHONE_CALL_LEAD · IMPORTED_LEAD · SUBMIT_LEAD_FORM · BOOK_APPOINTMENT …

countingTypestring

ONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).

ONE_PER_CLICK · MANY_PER_CLICK

defaultCurrencystring

ISO 4217 currency of defaultValue (value_settings.default_currency_code).

clickThroughLookbackWindowDaysinteger

Days after an ad click a conversion still counts.

viewThroughLookbackWindowDaysinteger

Days after an ad view a view-through conversion still counts.

primaryForGoalboolean

true = primary (counts toward bidding when its goal is biddable), false = secondary. Defaults to secondary for UPLOAD_CLICKS.

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.