Ad reference
4 pages, 27 routes, 27 connections and 2 CLI commands, generated from the declarations of Ad without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 8
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| List | ad.index | list | /view/ad/list | 0 | in navigation | ||
| Campaign | ad.item | detail | /view/ad/{campaign_id} | 0 | ad.index | hidden | |
| Manage campaign | ad.manage | editor | /view/ad/{campaign_id}/manage | 0 | ad.item | hidden | |
| Campaigns | ad.management.index | list | /view/ad/management/index | 0 | ad.index | hidden | |
| Campaign | ad.management.item | custom | /view/ad/management/item | 0 | ad.index | hidden | |
| Ad accounts | ad.platforms | custom | /view/ad/platforms | 60 | ad.index | in navigation | |
| Exchange | ad.exchange | custom | /view/ad/exchange | 61 | ad.index | in navigation | |
| Create | ad.create | editor | /view/ad/create | 80 | ad.index | in navigation |
Connections · 27
Ad.AddCreative
Add a creative in one exchange format (native video, banner, header, click-through, native item, native content) to a campaign; advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| format | required | |||
| headline | required | |||
| body | optional | |||
| media_ref | optional | |||
| landing_url | optional | |||
| size | optional | |||
| duration_ms | optional | |||
| item_ref | optional | |||
| cta | optional |
- Output keyad.result
- Classificationreal
- POST /ad/add_creativeHTTP route
Ad.ConnectPlatform
Connect the caller's own third-party ad account (Meta, or the offline fake): verify the token against the account, keep the token in the credential vault, record the account.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provider | required | |||
| ad_account_id | required | |||
| access_token | required | |||
| page_id | optional |
- Output keyad.result
- Classificationreal
- POST /ad/connect_platformHTTP route
Ad.CreateCampaign
Create an ad campaign with alignment targeting (goal/interest/habit tags), budget, and pricing model.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| title | required | |||
| creative_ref | optional | |||
| goals | optional | |||
| interests | optional | |||
| habits | optional | |||
| min_affinity | optional | |||
| budget | optional | |||
| pricing | optional | |||
| bid | optional | |||
| frequency_cap | optional | |||
| daily_budget | optional | |||
| budget_asset | optional | |||
| beneficiary | optional | |||
| exclude_tags | optional | |||
| exclude_surfaces | optional |
- Output keyad.result
- Classificationreal
- POST /ad/create_campaignHTTP route
Ad.CreateUnit
Register or update a publisher ad unit bound to a page, item, content, video or channel; the publisher share of its spend settles to the caller.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | optional | |||
| position | optional | |||
| formats | optional | |||
| sizes | optional | |||
| floor_price | optional | |||
| slots | optional | |||
| binding_kind | optional | |||
| binding_ref | optional | |||
| binding_tags | optional | |||
| active | optional |
- Output keyad.result
- Classificationreal
- POST /ad/create_unitHTTP route
Ad.DisconnectPlatform
Forget a connected ad account's token (refused while any placement on it is delivering).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| account_id | required |
- Output keyad.result
- Classificationreal
- POST /ad/disconnect_platformHTTP route
Ad.Explain
Transparency: why a viewer saw one specific ad (the recorded match reasons); readable by that viewer and the advertiser.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| impression_id | required |
- Output keyad.result
- Classificationroute_handler
- POST /ad/explainHTTP route
Ad.FlowMap
Every unit of ad money from advertiser budget through escrow to publishers, the platform and viewer pay-back, with per-format funnels; `reconcile` adds each recipient's Manifold ledger inflow.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| reconcile | optional |
- Output keyad.result
- Classificationroute_handler
- POST /ad/flow_mapHTTP route
Ad.FundCampaign
Add budget to a campaign and lock it in escrow for serving (escrow.lock.v1); advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| budget | optional |
- Output keyad.result
- Classificationreal
- POST /ad/fund_campaignHTTP route
Ad.GetCampaign
Fetch a single campaign by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required |
- Output keyad.result
- Classificationroute_handler
- POST /ad/get_campaignHTTP route
Ad.LaunchPlacement
Create a campaign's placement on a third-party platform with delivery off (spends nothing), billed to the advertiser's own account or, where the operator enabled it, the agency account.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| billing | optional | |||
| account_id | optional | |||
| provider | optional | |||
| daily_budget_minor | required | |||
| link_url | required | |||
| headline | optional | |||
| body | optional | |||
| image_url | optional | |||
| call_to_action | optional | |||
| page_id | optional | |||
| objective | optional | |||
| countries | optional | |||
| age_min | optional | |||
| age_max | optional | |||
| interests | optional | |||
| special_ad_categories | optional |
- Output keyad.result
- Classificationreal
- POST /ad/launch_placementHTTP route
Ad.ListCampaigns
List campaigns, optionally filtered to one advertiser.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| advertiser_peer_id | optional |
- Output keyad.result
- Classificationroute_handler
- POST /ad/list_campaignsHTTP route
Ad.ListPlatforms
The caller's connected ad accounts, the platforms this runtime supports, and whether agency billing is on.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| advertiser_peer_id | optional |
- Output keyad.result
- Classificationroute_handler
- POST /ad/list_platformsHTTP route
Ad.ListUnits
Registered ad units, newest first, optionally for one publisher.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| publisher_peer_id | optional |
- Output keyad.result
- Classificationroute_handler
- POST /ad/list_unitsHTTP route
Ad.Metrics
Campaign funnel: impressions, clicks, conversions, CTR and spend, per channel (CRE8 network and each third-party placement).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required |
- Output keyad.result
- Classificationroute_handler
- POST /ad/metricsHTTP route
Ad.Providers
The ad platforms a campaign can be placed on, for the Provider directory.
- Output keyad.result
- Classificationroute_handler
- GET /ad/providersHTTP route
Ad.RecordEngagement
The viewer records a view/click/dwell/convert on a served impression (once per kind): bill the auction price once per impression and pay the viewer back in attention assets.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| impression_id | required | |||
| kind | optional | |||
| dwell_ms | optional |
- Output keyad.result
- Classificationreal
- POST /ad/record_engagementHTTP route
Ad.RecordImpression
The viewer's surface reports a served placement as rendered on screen.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| impression_id | required | |||
| visible_ms | optional |
- Output keyad.result
- Classificationreal
- POST /ad/record_impressionHTTP route
Ad.RemoveCreative
Remove a creative from a campaign; advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| creative_id | required |
- Output keyad.result
- Classificationreal
- POST /ad/remove_creativeHTTP route
Ad.ReplayAuction
Re-run a recorded exchange auction from its bids and report whether the inputs still hash to the stored digest and the winners and prices match.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| auction_id | required |
- Output keyad.result
- Classificationroute_handler
- POST /ad/replay_auctionHTTP route
Ad.Serve
Alignment-first serving: clear an eCPM second-price auction for the viewer and record each won placement as an impression carrying its price and explainable why (`preview` records nothing).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| viewer_peer_id | optional | |||
| account_id | optional | |||
| interests | optional | |||
| surface | optional | |||
| publisher_peer_id | optional | |||
| limit | optional | |||
| floor_price | optional | |||
| preview | optional | |||
| unit_id | optional | |||
| binding_kind | optional | |||
| binding_ref | optional | |||
| binding_tags | optional | |||
| position | optional |
- Output keyad.result
- Classificationreal
- POST /ad/serveHTTP route
- ad serveCLI command
Ad.SetPlacementBudget
Change a third-party placement's daily budget on the platform; advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| placement_id | required | |||
| daily_budget_minor | required |
- Output keyad.result
- Classificationreal
- POST /ad/set_placement_budgetHTTP route
Ad.SetPlacementStatus
Start (needs confirm_spend: true — spends real money), pause or archive a third-party placement; advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| placement_id | required | |||
| status | required | |||
| confirm_spend | optional |
- Output keyad.result
- Classificationreal
- POST /ad/set_placement_statusHTTP route
Ad.SetUnitStatus
Pause or resume an ad unit; its publisher only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| unit_id | required | |||
| active | required |
- Output keyad.result
- Classificationreal
- POST /ad/set_unit_statusHTTP route
Ad.Status
Ad subsystem health + campaign/live counts.
- Output keyad.result
- Classificationroute_handler
- GET /ad/statusHTTP route
- ad statusCLI command
Ad.SyncPlacements
Pull each third-party placement's spend, impressions and clicks; agency placements charge new spend to the CRE8 budget (escrow.settle.v1 to the operator treasury) and stop when it runs out.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required |
- Output keyad.result
- Classificationreal
- POST /ad/sync_placementsHTTP route
Ad.UpdateCampaign
Edit a campaign's targeting, creative, bid, pacing or brand safety, or pause/resume/end it; advertiser only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | required | |||
| status | optional | |||
| title | optional | |||
| creative_ref | optional | |||
| goals | optional | |||
| interests | optional | |||
| habits | optional | |||
| min_affinity | optional | |||
| pricing | optional | |||
| bid | optional | |||
| frequency_cap | optional | |||
| daily_budget | optional | |||
| exclude_tags | optional | |||
| exclude_surfaces | optional |
- Output keyad.result
- Classificationreal
- POST /ad/update_campaignHTTP route
Ad.ViewPatch
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| campaign_id | optional |
- Output keyad.result
- Classificationunclassified
- GET /ad/document/patchHTTP route
CLI commands · 2
ad serve
Serve aligned ads to the caller (with explainable why)
ad serve
ad status
Check ad app status
ad status
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerAd
- SQL projectionnone · DDL declarations: 0
- AdAuction
- AdCampaign
- AdEngagement
- AdImpression
- AdPlatformAccount
- AdUnit
- AdAuction
- AdCampaign
- AdEngagement
- AdImpression
- AdPlatformAccount
- AdUnit
- Credential
- ad.engagement
- None declared.
- cre8/attention/{id}/ad
- No model warnings were reported.
Capabilities and dependencies
- Protocol
- Attention
- Escrow
- Goal
Structure review · 1
- Ad · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)