Skip to main content
POST
Send type: "reco_log". Send tracking_token, copied from the recommendation response, with the affected item IDs in event_items and their positions in event_position. For imp, on_ad_response records an impression when the response returns items and a tracking token; on_event_tracker records it when the client reports that the recommended items were shown. The recommendation tracking mode is returned in the response’s ext.ad_log_tracking_mode.

Body

application/json
action
required

Event type. Send an explicit action for each event.

Allowed value: "clk"
ad_log
string
required

Required ad tracking token: copy ext.ad_log from the ad response unchanged.

type
string
required
Allowed value: "ad_log"
conversion_data
object | null

Optional conversion data. For action=conv, downstream metrics read sales as conversion revenue, separately from price/spend. Do not send purchase value as price unless it also represents advertising cost.

custom_targeting
object | null

Optional custom targeting attributes forwarded to downstream ad-log processing

price
number<double> | null

Optional additional advertising cost for this event. A2 automatically records the cost of an impression it tracks, so omit price for that cost. Supply price only for costs A2 cannot track from the ad response, such as a conversion fee, and do not report costs already recorded by A2 again. Downstream ad metrics add supplied price values to spend. This is separate from conversion revenue (conversion_data.sales).

timestamp_in_ms
integer<int64>

Optional event time as an integer Unix timestamp in milliseconds. If omitted, advertising processing uses its current time.

Response

200

Accepted for downstream processing.