Clicks

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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-based

Parameter rank is 1-based as opposed to 0-based, and counts from the first available organic slot available.

Inputs

🚧

Sample Request

This 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
5th ad position having rank = 2
9th position having rank = 3

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
5th ad position having rank = 5
9th position having rank = 9

Counting starts with 1, not zero. Recorded as a separate field; it is not a substitute for rank.

Optional (must be included to be reportable)
redirect_url string (URL)

www.yoursite.com

The final URL for the user to land on if using Koddi redirection. Must exactly equal one of the asset URLs returned in the assets of the winning ads listing: a match returns 302, a mismatch returns 404 (the click is still recorded). If absent, there is no redirect (200 sent). Not applied to RTB.

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 cpc (else cpm), rank, bidderId, slot and clientTrackingId. The key is a client-specific AES key issued by Koddi. An invalid override drops the event. Not applied to RTB. Please discuss with your Koddi team before using this feature.

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.

Try It!

Query Params
string
required
Defaults to click

This must be set to click

string
required
string
required
int32
string
string

Must exactly equal one of the asset URLs returned in the winning-ads listing assets. A match returns 302; a mismatch returns 404 (the click is still recorded). If absent, there is no redirect (200 sent). Not applied to RTB.

date-time
string
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json