POST /api/v2/buyer/advertisers/{advertiserId}/log-event
Sends up to 10,000 outcome or marketing events in a single call, scoped to an event_source_id previously registered via Sync event sources. Events are deduplicated by event_id + event_type + event_source_id, so retries are safe.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string | Yes | Path. Owning advertiser |
event_source_id | string | Yes | Must match a source registered on the advertiser |
events | object[] | Yes | 1–10,000 events |
events[].event_id | string | Yes | Dedup key, unique within event_type + event_source_id |
events[].event_type | enum | Yes | ADCP event type, such as purchase, lead, add_to_cart, refund, subscribe, start_trial, app_install, or custom |
events[].event_time | string | Yes | ISO 8601 timestamp when the event occurred |
events[].custom_event_name | string | Conditional | Required when event_type is custom |
events[].action_source | enum | No | website, app, in_store, phone_call, system_generated, other |
events[].event_source_url | string | Conditional | Recommended when action_source is website |
events[].user_match | object | No | Identity fields: hashed_email, hashed_phone, click_id + click_id_type, uids, client_ip, client_user_agent |
events[].custom_data | object | No | value, currency, order_id, content_ids, num_items, contents |
test_event_code | string | No | Marks the request as test traffic — validated but excluded from production data |
Response
200 with partial_failures is normal — bad events are rejected individually while the rest succeed. Each failure carries event_id, code, and message. Treat a failure as something to fix at source, not a transient error.
Errors
400 VALIDATION_ERROR— emptyevents, more than 10,000 events, or missingcustom_event_nameon acustomevent.404 NOT_FOUND—advertiserIddoes not exist, orevent_source_idis not registered on the advertiser.
Related
Event source tasks
All event source operations
Log Events guide
Event types, identity fields, and best practices
Conversion API
Identity-hashing rules and attribution methods
Sync event sources
Register a source before logging