web

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-web"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c98607d6-613a-4769-ba8d-1fd655470740/social-card.svg?v=3e7ae33eec8b" alt="web" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/web/budget/curvesScope insight:read

Parameters

project_idstringpathrequired
conversion_eventstringquery
goal_idstringquery
fromstringquery
tostringquery
lookback_daysintegerquery
dimensionstringquery
modelstringquery
half_life_daysintegerquery
revenue_propertystringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/budget/curves"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "base_currency": "string",
  "channels": [
    {
      "a": 0,
      "avg_daily_conversions": 0,
      "avg_daily_spend": 0,
      "b": 0,
      "curve": [
        {
          "conversions": 0,
          "high": 0,
          "low": 0,
          "spend": 0
        }
      ],
      "days": 0,
      "key": "string",
      "kind": "string",
      "marginal_at_current": 0,
      "observed": [
        {
          "conversions": 0,
          "high": 0,
          "low": 0,
          "spend": 0
        }
      ],
      "r2": 0,
      "revenue_per_conversion": 0
    }
  ],
  "dimension": "string",
  "model": "string"
}
Schema
base_currencystringrequired
channelsChannelCurve[]required
Show child parameters
anumberrequired
avg_daily_conversionsnumberrequired
avg_daily_spendnumberrequired
Mean spend per day over the days with spend.
bnumberrequired
curveCurvePoint[]required
The fitted curve from 0 to twice the largest observed daily spend.
Show child parameters
conversionsnumberrequired
highnumberrequired
lownumberrequired
spendnumberrequired
Spend per day.
daysintegerrequired
Days used for the fit.
keystringrequired
kindstringrequired
power (a * spend^b) or linear (too few days to fit a curve).
marginal_at_currentnumberrequired
Extra conversions per extra unit of spend at the current daily spend.
observedCurvePoint[]required
Observed (spend, conversions) days.
Show child parameters
conversionsnumberrequired
highnumberrequired
lownumberrequired
spendnumberrequired
Spend per day.
r2numberrequired
revenue_per_conversionnumberrequired
Attributed revenue per attributed conversion (base currency).
dimensionstringrequired
modelstringrequired
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/web/budget/scenarioScope insight:read

Parameters

project_idstringpathrequired
conversion_eventstringquery
goal_idstringquery
fromstringquery
tostringquery
lookback_daysintegerquery
dimensionstringquery
modelstringquery
half_life_daysintegerquery
revenue_propertystringquery

Request body

application/json
boundsobject
Optional per-key bounds for the optimizer.
budgetsobject
Budget per key for the whole period. Keys left out plan at their current daily spend.
daysinteger
Length of the planned period in days (default 30, max 366).
optimizeboolean
Re-allocate the budget across keys to maximise projected conversions.
total_budgetnumber
Total budget for the period; with optimize it is split by marginal return, else the current spend mix is scaled to it.
{
  "bounds": {},
  "budgets": {},
  "days": 0,
  "optimize": true,
  "total_budget": 0
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/budget/scenario" \
  -H "Content-Type: application/json" \
  -d '{"bounds":{},"budgets":{},"days":0,"optimize":true,"total_budget":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "base_currency": "string",
  "baseline": {
    "conversions": 0,
    "conversions_high": 0,
    "conversions_low": 0,
    "cpa": 0,
    "revenue": 0,
    "roas": 0,
    "spend": 0
  },
  "days": 0,
  "rows": [
    {
      "conversions": 0,
      "conversions_high": 0,
      "conversions_low": 0,
      "cpa": 0,
      "current_spend": 0,
      "key": "string",
      "revenue": 0,
      "roas": 0,
      "spend": 0
    }
  ],
  "totals": {
    "conversions": 0,
    "conversions_high": 0,
    "conversions_low": 0,
    "cpa": 0,
    "revenue": 0,
    "roas": 0,
    "spend": 0
  }
}
Schema
base_currencystringrequired
baselineobjectrequired
The same budget at the current spend mix, as the baseline.
Show child parameters
conversionsnumberrequired
conversions_highnumberrequired
conversions_lownumberrequired
cpanumber
revenuenumberrequired
roasnumber
spendnumberrequired
daysintegerrequired
rowsBudgetPlanRow[]required
Show child parameters
conversionsnumberrequired
conversions_highnumberrequired
conversions_lownumberrequired
cpanumber
Projected cost per conversion.
current_spendnumberrequired
Spend over the period at the current daily rate, for comparison.
keystringrequired
revenuenumberrequired
roasnumber
spendnumberrequired
Spend over the period.
totalsobjectrequired
Show child parameters
conversionsnumberrequired
conversions_highnumberrequired
conversions_lownumberrequired
cpanumber
revenuenumberrequired
roasnumber
spendnumberrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/channel-rulesScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/channel-rules"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "custom": true,
  "rules": [
    {
      "campaign": "string",
      "channel": "string",
      "click_id": [
        "string"
      ],
      "has_medium": true,
      "kind": [
        "string"
      ],
      "medium": "string",
      "source": "string",
      "utm": true
    }
  ]
}
Schema
custombooleanrequired
False while the shipped defaults are in effect.
rulesRule[]required
Show child parameters
campaignstring
channelstringrequired
click_idstring[]
Click-id params (gclid, fbclid, ...), any present.
has_mediumboolean
kindstring[]
Any of search|social|ai|email|video|other|none.
mediumstring
sourcestring
utmboolean
404
PUThttps://lucidace.com/v1/projects/{project_id}/web/channel-rulesScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
rulesRule[]required
Show child parameters
campaignstring
channelstringrequired
click_idstring[]
Click-id params (gclid, fbclid, ...), any present.
has_mediumboolean
kindstring[]
Any of search|social|ai|email|video|other|none.
mediumstring
sourcestring
utmboolean
{
  "rules": [
    {
      "campaign": "string",
      "channel": "string",
      "click_id": [
        "string"
      ],
      "has_medium": true,
      "kind": [
        "string"
      ],
      "medium": "string",
      "source": "string",
      "utm": true
    }
  ]
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/web/channel-rules" \
  -H "Content-Type: application/json" \
  -d '{"rules":[{"campaign":"string","channel":"string","click_id":["string"],"has_medium":true,"kind":["string"],"medium":"string","source":"string","utm":true}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/web/channel-rulesScope insight:write

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/channel-rules"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204 Back to the shipped defaults
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/web/contentScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
limitintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/content"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
[
  {
    "impressions": 0,
    "interaction_rate": 0,
    "interactions": 0,
    "name": "string",
    "piece": "string",
    "visitors": 0
  }
]
Schema
impressionsintegerrequired
interaction_ratenumber
interactions / impressions; null without impressions.
interactionsintegerrequired
namestringrequired
piecestringrequired
visitorsintegerrequired
400
404
503

Updated