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"
}
}'const res = await fetch("https://api.peume.com/v1/call/create-conversion-action", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"name": "your name",
"type": "WEBPAGE"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/create-conversion-action",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"name": "your name",
"type": "WEBPAGE"
}
},
)
print(res.json()["output"])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
stagebooleanSend 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`.
accountIdRequiredstringSocialAccount ID. Must be a `googleads` account.
adAccountIdstringPlatform ad account ID (Google customer ID, digits only). Resolved automatically when the connection has exactly one accessible customer.
customerIdstringAlias of adAccountId, kept for existing callers
nameRequiredstringtypeRequiredstringWEBPAGE for a website tag, UPLOAD_CLICKS for the conversions you send to.
WEBPAGE · UPLOAD_CLICKS
defaultValuenumberDefault conversion value used when an event doesn't carry its own value.
alwaysUseDefaultValuebooleanWhen true, always use defaultValue and ignore any value sent with the event. Defaults to true when defaultValue is set.
categorystringconversion_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 …
countingTypestringONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).
ONE_PER_CLICK · MANY_PER_CLICK
defaultCurrencystringISO 4217 currency of defaultValue (value_settings.default_currency_code).
clickThroughLookbackWindowDaysintegerDays after an ad click a conversion still counts.
viewThroughLookbackWindowDaysintegerDays after an ad view a view-through conversion still counts.
primaryForGoalbooleantrue = primary (counts toward bidding when its goal is biddable), false = secondary. Defaults to secondary for UPLOAD_CLICKS.
