log_event
[AdCP Media Buy] Record a conversion or attribution event.
Records conversion events for post-campaign attribution analysis. Events are deduplicated by event_id + event_type combination.
WHEN TO USE:
Recording offline conversions (store visits, purchases)
Tracking post-view attribution events
Logging custom KPI events
EXAMPLE: log_event({ media_buy_id: "mbuy_abc123", event: { event_id: "conv_12345", event_type: "store_visit", value_cents: 5000, screen_id: "507f1f77bcf86cd799439011", metadata: { store: "NYC-001", dwell_minutes: 12 } } })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | Event data | |
| media_buy_id | Yes | Media buy ID |