| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
This endpoint allows tracking of click activity. It should be called when the ad is clicked or tapped.
The click_tracking_url returned in the winning ads response is a template, not a ready-to-call URL: https://{host}/event-collection/beacon?action=click&trackingData={trackingData}&rank={rank}&clientName=..&beaconIssued=... You must substitute {trackingData} (from the tracking_data value in the response) and {rank} before calling it. The host is the Host of your winning ads request, so call the public {clientname}.koddi.io host or rewrite the host.
It is imperative that trackingData is updated to the value sent in the winning ads response. Other fields (rank, etc.) are optional. Parameter names are also accepted in snake_case (tracking_data, client_name). trackingData must be URL-encoded. Event time is recorded from server time; beaconIssued is not used for it.
Rank is 1-basedParameter rank is 1-based as opposed to 0-based, and counts from the first available organic slot available.
Inputs
Sample RequestThis is a sample - replace the values with the ones from your winning ads response. Your Koddi team can confirm your client name and any program-specific parameters.
GET https://{clientname}.koddi.io/event-collection/beacon?action=click&clientName=Your%20Name&trackingData={trackingData}&rank=1&redirect_url=https%3A%2F%2Fwww.yoursite.com| Field | Type | Description | Required |
| action | string | click | Required |
| clientName | string | Your Name Your client identifier configured by Koddi for your integration. Your Koddi team will provide this value. |
Informational |
| trackingData | string | Provided by Koddi in the post winning ads response as [tracking_data]. This value uniquely identifies the auction, ad group, and advertiser and must be passed exactly as received. |
Required |
| rank | integer | 1 The rank of the ad unit displayed. Please note this is not equivalent to the overall rank of the ad position. Example: Your program has 3 static ad slots, in the 2nd, 5th, and 9th overall positions on the page. The rank values would be as follows: 2nd ad position having rank = 1 Counting starts with 1, not zero. Defaults to 1 if omitted. |
Optional (must be included to be reportable) |
| onsite_paid_rank | integer | The rank of the ad unit displayed. Should match the rank parameter value. Recorded as a separate field; it is not a substitute for rank. |
Optional (must be included to be reportable) |
| onsite_organic_rank | integer | The overall rank of the ad position. Example: Your program has 3 static ad slots, in the 2nd, 5th, and 9th overall positions on the page. The rank values would be as follows: 2nd ad position having rank = 2 Counting starts with 1, not zero. Recorded as a separate field; it is not a substitute for |
Optional (must be included to be reportable) |
| redirect_url | string (URL) | The final URL for the user to land on if using Koddi redirection. Must exactly equal one of the asset URLs returned in the |
Optional |
| beaconIssued | string (timestamp) | 2021-07-12T19:10:05 The timestamp the beacon was generated from the associated winning ads call. Pass this value exactly as received. Informational only; it is not used as the event time. |
Informational |
| overrides | string | {encrypted({"cpc": 1.5, "rank": 1})} Enables you to override the auction results used during clicks reporting. Supported keys include |
Optional |
Response
A successful call returns an empty 200 response. If redirect_url is supplied and matches one of the ad's asset URLs, the call returns a 302 redirect to it; if it does not match, the call returns a 404 and the click is still recorded. The error responses this endpoint can return are listed in the Responses panel next to the request.
If clicks are not appearing in reporting, contact the appropriate Koddi associate.

