Skip to content
1 viewer
View

Ad reference

4 pages, 27 routes, 27 connections and 2 CLI commands, generated from the declarations of Ad without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Listad.indexlist/view/ad/list0in navigation
Campaignad.itemdetail/view/ad/{campaign_id}0ad.indexhidden
Manage campaignad.manageeditor/view/ad/{campaign_id}/manage0ad.itemhidden
Campaignsad.management.indexlist/view/ad/management/index0ad.indexhidden
Campaignad.management.itemcustom/view/ad/management/item0ad.indexhidden
Ad accountsad.platformscustom/view/ad/platforms60ad.indexin navigation
Exchangead.exchangecustom/view/ad/exchange61ad.indexin navigation
Createad.createeditor/view/ad/create80ad.indexin navigation
8 rows

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.

Ad.AddCreative input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
formatrequired
headlinerequired
bodyoptional
media_refoptional
landing_urloptional
sizeoptional
duration_msoptional
item_refoptional
ctaoptional
10 rows
Calls and output
  • 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.

Ad.ConnectPlatform input
FieldTypeRequiredDescriptionAllowed
providerrequired
ad_account_idrequired
access_tokenrequired
page_idoptional
4 rows
Calls and output
  • 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.

Ad.CreateCampaign input
FieldTypeRequiredDescriptionAllowed
titlerequired
creative_refoptional
goalsoptional
interestsoptional
habitsoptional
min_affinityoptional
budgetoptional
pricingoptional
bidoptional
frequency_capoptional
daily_budgetoptional
budget_assetoptional
beneficiaryoptional
exclude_tagsoptional
exclude_surfacesoptional
15 rows
Calls and output
  • 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.

Ad.CreateUnit input
FieldTypeRequiredDescriptionAllowed
nameoptional
positionoptional
formatsoptional
sizesoptional
floor_priceoptional
slotsoptional
binding_kindoptional
binding_refoptional
binding_tagsoptional
activeoptional
10 rows
Calls and output
  • 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).

Ad.DisconnectPlatform input
FieldTypeRequiredDescriptionAllowed
account_idrequired
1 row
Calls and output
  • 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.

Ad.Explain input
FieldTypeRequiredDescriptionAllowed
impression_idrequired
1 row
Calls and output
  • 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.

Ad.FlowMap input
FieldTypeRequiredDescriptionAllowed
reconcileoptional
1 row
Calls and output
  • 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.

Ad.FundCampaign input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
budgetoptional
2 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/fund_campaignHTTP route

Ad.GetCampaign

Fetch a single campaign by id.

Ad.GetCampaign input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
1 row
Calls and output
  • 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.

Ad.LaunchPlacement input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
billingoptional
account_idoptional
provideroptional
daily_budget_minorrequired
link_urlrequired
headlineoptional
bodyoptional
image_urloptional
call_to_actionoptional
page_idoptional
objectiveoptional
countriesoptional
age_minoptional
age_maxoptional
interestsoptional
special_ad_categoriesoptional
17 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/launch_placementHTTP route

Ad.ListCampaigns

List campaigns, optionally filtered to one advertiser.

Ad.ListCampaigns input
FieldTypeRequiredDescriptionAllowed
advertiser_peer_idoptional
1 row
Calls and output
  • 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.

Ad.ListPlatforms input
FieldTypeRequiredDescriptionAllowed
advertiser_peer_idoptional
1 row
Calls and output
  • Output keyad.result
  • Classificationroute_handler
  • POST /ad/list_platformsHTTP route

Ad.ListUnits

Registered ad units, newest first, optionally for one publisher.

Ad.ListUnits input
FieldTypeRequiredDescriptionAllowed
publisher_peer_idoptional
1 row
Calls and output
  • 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).

Ad.Metrics input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
1 row
Calls and output
  • Output keyad.result
  • Classificationroute_handler
  • POST /ad/metricsHTTP route

Ad.Providers

The ad platforms a campaign can be placed on, for the Provider directory.

Calls and output
  • 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.

Ad.RecordEngagement input
FieldTypeRequiredDescriptionAllowed
impression_idrequired
kindoptional
dwell_msoptional
3 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/record_engagementHTTP route

Ad.RecordImpression

The viewer's surface reports a served placement as rendered on screen.

Ad.RecordImpression input
FieldTypeRequiredDescriptionAllowed
impression_idrequired
visible_msoptional
2 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/record_impressionHTTP route

Ad.RemoveCreative

Remove a creative from a campaign; advertiser only.

Ad.RemoveCreative input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
creative_idrequired
2 rows
Calls and output
  • 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.

Ad.ReplayAuction input
FieldTypeRequiredDescriptionAllowed
auction_idrequired
1 row
Calls and output
  • 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).

Ad.Serve input
FieldTypeRequiredDescriptionAllowed
viewer_peer_idoptional
account_idoptional
interestsoptional
surfaceoptional
publisher_peer_idoptional
limitoptional
floor_priceoptional
previewoptional
unit_idoptional
binding_kindoptional
binding_refoptional
binding_tagsoptional
positionoptional
13 rows
Calls and output

Ad.SetPlacementBudget

Change a third-party placement's daily budget on the platform; advertiser only.

Ad.SetPlacementBudget input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
placement_idrequired
daily_budget_minorrequired
3 rows
Calls and output
  • 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.

Ad.SetPlacementStatus input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
placement_idrequired
statusrequired
confirm_spendoptional
4 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/set_placement_statusHTTP route

Ad.SetUnitStatus

Pause or resume an ad unit; its publisher only.

Ad.SetUnitStatus input
FieldTypeRequiredDescriptionAllowed
unit_idrequired
activerequired
2 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/set_unit_statusHTTP route

Ad.Status

Ad subsystem health + campaign/live counts.

Calls and output

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.

Ad.SyncPlacements input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
1 row
Calls and output
  • 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.

Ad.UpdateCampaign input
FieldTypeRequiredDescriptionAllowed
campaign_idrequired
statusoptional
titleoptional
creative_refoptional
goalsoptional
interestsoptional
habitsoptional
min_affinityoptional
pricingoptional
bidoptional
frequency_capoptional
daily_budgetoptional
exclude_tagsoptional
exclude_surfacesoptional
14 rows
Calls and output
  • Output keyad.result
  • Classificationreal
  • POST /ad/update_campaignHTTP route

Ad.ViewPatch

Ad.ViewPatch input
FieldTypeRequiredDescriptionAllowed
campaign_idoptional
1 row
Calls and output
  • 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.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerAd
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
  • AdAuction
  • AdCampaign
  • AdEngagement
  • AdImpression
  • AdPlatformAccount
  • AdUnit
Hyper vertex kinds written
  • AdAuction
  • AdCampaign
  • AdEngagement
  • AdImpression
  • AdPlatformAccount
  • AdUnit
  • Credential
Hyper edge kinds written
  • ad.engagement
Asset namespaces read
  • None declared.
Asset namespaces minted
  • cre8/attention/{id}/ad
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol
  • Attention
  • Escrow
  • Goal

Structure review · 1

Warnings · 1
  • Ad · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)