Trillboards Incrementality API
Bayesian uplift measurement with geo-holdout experiments, ghost ads, and propensity matching
Bayesian uplift measurement with geo-holdout experiments, ghost ads, and propensity matching
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-incrementality-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Trillboards Attribution & Measurement Incrementality API
version: 1.0.0
description: 'Closed-loop DOOH attribution engine with attention-verified impressions,
cross-channel multi-touch attribution, Bayesian incrementality measurement,
and creative performance optimization.
## Why This Matters
Traditional DOOH attribution estimates impressions using population data.
Trillboards MEASURES them: on-device computer vision (ML Kit) counts faces
and tracks gaze, audio classification (YAMNet TFLite) detects ambient context,
and third-party mobile location signals (Intuizi) prove store visits.
Every metric in this API is deterministic, not probabilistic.
## Authentication
All endpoints require a valid JWT token in the Authorization header:
```
Authorization: Bearer
```
Tokens are obtained via `POST /v1/user/login`.
## Key Concepts
- **aCPM (Attention CPM)**: Cost per 1,000 attention-verified impressions. Unlike standard CPM, aCPM only counts impressions where someone was actually looking at the screen.
- **Incremental Lift**: The percentage increase in store visits attributable to the DOOH campaign, measured via geo-holdout experiments with matched control groups.
- **CPIV (Cost Per Incremental Visit)**: Total media cost divided by the number of store visits that would NOT have happened without the campaign.
- **Weighted Confidence**: Exposure match confidence (spatial/temporal) multiplied by attention weight from FEIN edge AI. Higher = more certain the person both saw AND paid attention to the ad.
- **Attribution Chain**: A complete user journey across channels (billboard -> mobile ad -> web visit -> store visit) with credit allocation via multi-touch models.
## Attribution Pipeline (6 Layers)
1. **Signal Ingestion** — Intuizi mobile device location pings + POI reference data
2. **Exposure Matching** — PostGIS ST_DWithin joins device signals with ad plays
3. **Attention Enrichment** — FEIN edge AI inference (face count, gaze, emotion) attached to each exposure
4. **Identity Resolution** — Household clustering, cross-device graph, pixel visitor linking
5. **Attribution** — Multi-touch credit allocation across DOOH + mobile + web + store channels
6. **Measurement** — Bayesian + frequentist incrementality with geo-holdout experiments'
contact:
name: Trillboards Developer Support
email: developers@trillboards.com
url: https://trillboards.com/developers
license:
name: Proprietary
url: https://trillboards.com/terms-of-service
servers:
- url: https://api.trillboards.com
description: Production API
- url: http://localhost:4004
description: Local development
tags:
- name: Incrementality
description: Bayesian uplift measurement with geo-holdout experiments, ghost ads, and propensity matching
paths:
/v1/advertiser/attribution/campaign/{campaignId}/incrementality:
get:
operationId: getCampaignIncrementality
summary: Incrementality results
description: 'Returns Bayesian uplift measurement for a campaign. This is the
gold standard of DOOH attribution — proving that store visits
WOULD NOT have happened without the campaign.
Results include:
- **Bayesian posterior**: P(lift > 0) and 95% credible intervals
- **Frequentist**: chi-square, p-value, confidence intervals
- **Propensity quality**: standardized mean difference for covariate balance
A P(lift > 0) > 0.95 indicates strong evidence of causal effect.'
tags:
- Incrementality
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/campaignId'
responses:
'200':
description: Incrementality results
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/IncrementalityResult'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/ServerError'
/v1/advertiser/attribution/experiment:
post:
operationId: createExperiment
summary: Create incrementality experiment
description: 'Creates a new incrementality experiment with specified design:
- **geo_holdout**: Withhold ads in control DMAs, compare visit rates
- **ghost_ad**: Serve PSA ads to control group, measure true lift
- **psa_control**: Serve public service announcements as control creatives
- **matched_market**: Match treatment/control markets on covariates
The experiment runs automatically once created. Results populate
in the experiment status endpoint as data accumulates.'
tags:
- Incrementality
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateExperimentRequest'
example:
campaignId: camp_abc123
experimentType: geo_holdout
treatmentDmas:
- '501'
- '602'
- '803'
controlDmas:
- '504'
- '623'
- '819'
holdoutPct: 0.1
targetMde: 0.1
targetPower: 0.8
targetAlpha: 0.05
responses:
'201':
description: Experiment created
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/Experiment'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/ServerError'
/v1/advertiser/attribution/experiment/{experimentId}:
get:
operationId: getExperiment
summary: Experiment status and results
description: 'Returns experiment configuration, status, and results (if available).
Results include both Bayesian posteriors and frequentist p-values.'
tags:
- Incrementality
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/experimentId'
responses:
'200':
description: Experiment details with results
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/ExperimentWithResults'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/ServerError'
/v1/advertiser/attribution/experiment/{experimentId}/power:
get:
operationId: getExperimentPower
summary: Power analysis
description: 'Returns the required sample size to detect a given minimum detectable
effect (MDE) at specified significance and power levels.
Use this before running an experiment to ensure you''ll have enough
data to detect the effect you care about.'
tags:
- Incrementality
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/experimentId'
- name: baselineRate
in: query
schema:
type: number
default: 0.02
description: Baseline visit rate (default 2%)
responses:
'200':
description: Power analysis results
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/PowerAnalysis'
example:
success: true
data:
required_sample_per_group: 3842
total_sample_needed: 7684
baselineRate: 0.02
mde: 0.1
alpha: 0.05
power: 0.8
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/ServerError'
components:
schemas:
CreateExperimentRequest:
type: object
required:
- campaignId
- experimentType
properties:
campaignId:
type: string
pattern: ^[a-zA-Z0-9_-]{1,128}$
experimentType:
type: string
enum:
- geo_holdout
- ghost_ad
- psa_control
- matched_market
treatmentDmas:
type: array
items:
type: string
description: DMA codes for treatment (ads shown)
controlDmas:
type: array
items:
type: string
description: DMA codes for control (ads withheld)
holdoutPct:
type: number
minimum: 0
maximum: 1
default: 0.1
description: Fraction of audience to withhold ads from
targetMde:
type: number
default: 0.1
description: Minimum detectable effect (e.g. 0.10 = 10% lift)
targetPower:
type: number
default: 0.8
description: Statistical power (probability of detecting true effect)
targetAlpha:
type: number
default: 0.05
description: Significance level (probability of false positive)
ExperimentWithResults:
allOf:
- type: object
properties:
experiment:
$ref: '#/components/schemas/Experiment'
results:
$ref: '#/components/schemas/IncrementalityResult'
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
IncrementalityResult:
type: object
description: 'Bayesian + frequentist incrementality measurement results.
Provides both perspectives for statistical rigor.
'
properties:
campaign_id:
type: string
experiment_type:
type: string
enum:
- geo_holdout
- ghost_ad
- psa_control
- matched_market
treatment:
type: object
properties:
devices:
type: integer
visitors:
type: integer
visit_rate:
type: number
control:
type: object
properties:
devices:
type: integer
visitors:
type: integer
visit_rate:
type: number
lift:
type: object
properties:
absolute_lift:
type: number
relative_lift_pct:
type: number
incremental_visits:
type: integer
frequentist:
type: object
properties:
chi_square:
type: number
p_value:
type: number
description: P-value from chi-square test. < 0.05 = significant.
confidence_interval_lower:
type: number
confidence_interval_upper:
type: number
bayesian:
type: object
description: Bayesian Beta-Binomial posterior with Monte Carlo sampling
properties:
posterior_prob_positive:
type: number
description: P(lift > 0). > 0.95 indicates strong evidence of positive effect.
expected_uplift:
type: number
credible_interval_lower:
type: number
description: Lower bound of 95% highest density interval
credible_interval_upper:
type: number
description: Upper bound of 95% highest density interval
Experiment:
type: object
properties:
experiment_id:
type: string
format: uuid
campaign_id:
type: string
advertiser_id:
type: string
experiment_type:
type: string
enum:
- geo_holdout
- ghost_ad
- psa_control
- matched_market
status:
type: string
enum:
- draft
- active
- measuring
- completed
- cancelled
treatment_dmas:
type: array
items:
type: string
control_dmas:
type: array
items:
type: string
holdout_pct:
type: number
target_mde:
type: number
target_power:
type: number
target_alpha:
type: number
created_at:
type: string
format: date-time
PowerAnalysis:
type: object
properties:
required_sample_per_group:
type: integer
description: Minimum sample size needed per group (treatment + control)
total_sample_needed:
type: integer
baselineRate:
type: number
mde:
type: number
alpha:
type: number
power:
type: number
parameters:
campaignId:
name: campaignId
in: path
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9_-]{1,128}$
description: Campaign identifier
experimentId:
name: experimentId
in: path
required: true
schema:
type: string
format: uuid
description: Incrementality experiment UUID
responses:
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid authentication token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ServerError:
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT token obtained via POST /v1/user/login