Skip to main content
POST /api/v2/buyer/advertisers/{advertiserId}/measurement-records Uploads outcome measurement records (sales, brand lift, etc.) directly to the learning engine. Each record carries a value for one outcome type, geo, and time window. Up to 5,000 records per call. Records upsert on (account, advertiser, outcomeType, source, geo, time window).

Request

Parameters

Response

recordsUpserted is the number of records inserted or updated (records upsert on (account, advertiser, outcomeType, source, geo, time window), so re-uploading the same key updates in place). records[] echoes the persisted rows.

Errors

  • 400 VALIDATION_ERROR — empty records, more than 5,000 records, a missing required field, or a malformed timeWindowStart/timeWindowEnd date.
  • 404 NOT_FOUNDadvertiserId does not exist or is not visible to the authenticated account.
See Errors for the full error contract.

Measurement tasks

All measurement operations

Measurement overview

Pipeline, belief state, and concepts

List measurement records

Query uploaded records

Upload context records

Add market conditions to partial out