Bid Schema
Overview
Brand Agent bid submitted in response to aContextRequest. Includes pricing for CPX/CPC/CPA in micros format (with cents and dollars for display), structured recommendation metadata, and relevance scoring.
Required Fields
| Field | Type | Description |
|---|---|---|
bid_id | string | Unique identifier for this bid |
brand_agent_id | string | Identifier of the Brand Agent placing the bid |
context_id | string | ID of the ContextRequest being bid on |
wallet_id | string | Wallet to debit if the bid wins |
pricing | object | Pricing vector with micros (authoritative), cents (display), and dollars (UI) |
recommendation | object | Recommendation metadata + creative input |
timestamp | string | ISO 8601 timestamp for the bid |
relevance | number | Relevance score for this bid (0.0-1.0). Required field used by operator for bid ranking |
Pricing Object
Pricing uses USD micros as the authoritative format (1 USD = 1,000,000 micros), with cents and dollars provided for brand-friendly display.| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Yes | ISO 4217 currency code (default USD) |
display_currency | string | Yes | Display currency code (default USD) |
cpx_micros | integer | No | Price per exposure in USD micros (authoritative) |
cpx_cents | integer | No | Price per exposure in cents (for display, derived from micros) |
cpx_dollars | number | No | Price per exposure in dollars (for UI, derived from micros) |
cpc_micros | integer | No | Price per click in USD micros (authoritative) |
cpc_cents | integer | No | Price per click in cents (for display, derived from micros) |
cpc_dollars | number | No | Price per click in dollars (for UI, derived from micros) |
cpa_micros | integer | No | Price per conversion in USD micros (authoritative) |
cpa_cents | integer | No | Price per conversion in cents (for display, derived from micros) |
cpa_dollars | number | No | Price per conversion in dollars (for UI, derived from micros) |
preferred_pricing_model | string | No | Preferred pricing model: “CPX”, “CPC”, or “CPA” |
cpx_micros, cpc_micros, or cpa_micros must be provided. The operator uses micros values for all calculations. Cents and dollars are provided for brand-friendly display and UI rendering.
Recommendation Object
Containscreative_input, the unified creative input structure shared with the operator.
| Field | Type | Required | Description |
|---|---|---|---|
creative_input | object | Yes | Unified creative input structure |
creative_input object contains:
brand_name: Brand or advertiser nameproduct_name: Product or offer nameshort_description: 1-2 sentence summary (max 200 chars)long_description: 2-4 sentence expanded description (max 500 chars)value_props: Short value propositions or bullet pointscontext_snippet: 60-100 character contextual hint for weave formatcta_label: Call-to-action labelcta_url: Call-to-action URLassets: Creative assets (logo, images, resource URLs)
Optional Fields
| Field | Type | Description |
|---|---|---|
preferred_format | string | Preferred creative format: “weave”, “tail”, “product_card”, or “bridge” |
processing_latency_ms | integer | Round-trip latency from auction request receipt to bid submission (milliseconds) |
Example
Validation Rules
- At least one of
cpx_micros,cpc_micros, orcpa_microsmust be provided relevancemust be between 0.0 and 1.0currencyanddisplay_currencymust be valid ISO 4217 codes- Arrays in
creative_inputmust contain at least one entry where required resource_urlsandimage_urlsmust be valid URIstimestampmust be ISO 8601 / RFC 3339 formatted- Micros values are authoritative; cents and dollars are derived for display
Pricing Format Migration
Old format (deprecated):- Used string-based pricing:
"cpx": "0.05","cpc": "0.45","cpa": "10.00"
- Uses integer micros (authoritative):
cpx_micros: 50000,cpc_micros: 450000,cpa_micros: 10000000 - Includes cents and dollars for display:
cpx_cents: 5,cpx_dollars: 0.05 - Conversion: 1 USD = 1,000,000 micros = 100 cents