---
updatedAt: 2026-11-02T20:24:28.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Selection

A selection log is generated for every ad that was returned in an Ad Decision Request.

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>

      <th>
        Sample Data
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        SelectionId
      </td>

      <td>
        string
      </td>

      <td>
        Unique identifier for the selection record, generated as MD5 hash of concatenated fields
      </td>

      <td>
        "90e19b84e78f436286aa4195140c2998"
      </td>
    </tr>

    <tr>
      <td>
        Id
      </td>

      <td>
        string
      </td>

      <td>
        Original selection identifier. A unique ID is generated for each ad selected.
      </td>

      <td>
        "a1b2c3d4e5f6g7h8i9j0"
      </td>
    </tr>

    <tr>
      <td>
        EventCreatedOn
      </td>

      <td>
        timestamp
      </td>

      <td>
        Unix timestamp in milliseconds when the event, in this case selection, was created
      </td>

      <td>
        1735689600000
      </td>
    </tr>

    <tr>
      <td>
        AdId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the ad
      </td>

      <td>
        123456789
      </td>
    </tr>

    <tr>
      <td>
        AdTypeId
      </td>

      <td>
        bigint
      </td>

      <td>
        [Type](https://dev.kevel.com/docs/ad-sizes) identifier for the ad
      </td>

      <td>
        1
      </td>
    </tr>

    <tr>
      <td>
        AuctionBids
      </td>

      <td>
        bigint
      </td>

      <td>
        Number of bids in the auction
      </td>

      <td>
        5
      </td>
    </tr>

    <tr>
      <td>
        AdvertiserId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the advertiser
      </td>

      <td>
        2325487
      </td>
    </tr>

    <tr>
      <td>
        BurnIn
      </td>

      <td>
        boolean
      </td>

      <td>
        Flag indicating if the the ad is still in burn-in phase when the auction was conducted
      </td>

      <td>
        true
      </td>
    </tr>

    <tr>
      <td>
        CampaignId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the campaign
      </td>

      <td>
        123456789
      </td>
    </tr>

    <tr>
      <td>
        ChannelId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the channel
      </td>

      <td>
        123456789
      </td>
    </tr>

    <tr>
      <td>
        CreativeId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the creative
      </td>

      <td>
        123456789
      </td>
    </tr>

    <tr>
      <td>
        CreativeMetadata
      </td>

      <td>
        json
      </td>

      <td>
        JSON array of metadata stored in a creative
      </td>

      <td>
        ```
        { "customData":
        	{"hello" :"world" }
        }
        ```
      </td>
    </tr>

    <tr>
      <td>
        Datacenter
      </td>

      <td>
        boolean
      </td>

      <td>
        Flag indicating if the impression was served from a datacenter
      </td>

      <td>
        false
      </td>
    </tr>

    <tr>
      <td>
        DecisionId
      </td>

      <td>
        string
      </td>

      <td>
        Identifier for the decision. A distinct value is created for each `placement` object in an ADR.
      </td>

      <td>
        "90e19b84e78f436286aa4195140c2998"
      </td>
    </tr>

    <tr>
      <td>
        DecisionIdx
      </td>

      <td>
        integer
      </td>

      <td>
        Decision Index. If the Decision generates only one Selection (i.e. it does not originate from a multi-winner placement) then the DecisionIdx will always be 0. For multi-winner placements, the DecisionIdx will be the order of the Selection within the Decision (zero indexed).
      </td>

      <td>
        0
      </td>
    </tr>

    <tr>
      <td>
        DeviceBrandName
      </td>

      <td>
        string
      </td>

      <td>
        Brand name of the device
      </td>

      <td>
        "Apple"
      </td>
    </tr>

    <tr>
      <td>
        DeviceBrowser
      </td>

      <td>
        string
      </td>

      <td>
        Browser name of the device
      </td>

      <td>
        "Chrome"
      </td>
    </tr>

    <tr>
      <td>
        DeviceBrowserMajorVersion
      </td>

      <td>
        string
      </td>

      <td>
        Major version of the browser
      </td>

      <td>
        "120"
      </td>
    </tr>

    <tr>
      <td>
        DeviceBrowserMinorVersion
      </td>

      <td>
        string
      </td>

      <td>
        Minor version of the browser
      </td>

      <td>
        "0"
      </td>
    </tr>

    <tr>
      <td>
        DeviceBrowserRawVersion
      </td>

      <td>
        string
      </td>

      <td>
        Raw version string of the browser
      </td>

      <td>
        "120.0.6099.130"
      </td>
    </tr>

    <tr>
      <td>
        DeviceFormFactor
      </td>

      <td>
        string
      </td>

      <td>
        Form factor of the device
      </td>

      <td>
        "mobile"
      </td>
    </tr>

    <tr>
      <td>
        DeviceModelName
      </td>

      <td>
        string
      </td>

      <td>
        Model name of the device
      </td>

      <td>
        "iPhone 13"
      </td>
    </tr>

    <tr>
      <td>
        DeviceOsMajorVersion
      </td>

      <td>
        string
      </td>

      <td>
        Major version of the operating system
      </td>

      <td>
        "15"
      </td>
    </tr>

    <tr>
      <td>
        DeviceOsMinorVersion
      </td>

      <td>
        string
      </td>

      <td>
        Minor version of the operating system
      </td>

      <td>
        "4"
      </td>
    </tr>

    <tr>
      <td>
        DeviceOsRawVersion
      </td>

      <td>
        string
      </td>

      <td>
        Raw version string of the operating system
      </td>

      <td>
        "15.4.1"
      </td>
    </tr>

    <tr>
      <td>
        dt
      </td>

      <td>
        string
      </td>

      <td>
        Date partition
      </td>

      <td>
        "2024/1/1"
      </td>
    </tr>

    <tr>
      <td>
        Ecpm
      </td>

      <td>
        float
      </td>

      <td>
        Effective cost per thousand impressions
      </td>

      <td>
        2.50
      </td>
    </tr>

    <tr>
      <td>
        EcpmPartition
      </td>

      <td>
        string
      </td>

      <td>
        [Partition](https://dev.kevel.com/docs/ecpm-partitions) for eCPM
      </td>

      <td>
        "landing"
      </td>
    </tr>

    <tr>
      <td>
        FlightId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the flight
      </td>

      <td>
        123456789
      </td>
    </tr>

    <tr>
      <td>
        FrequencyCap
      </td>

      <td>
        bigint
      </td>

      <td>
        [Frequency](https://dev.kevel.com/docs/frequency-capping-1) cap value. `1 = Hour 2 = Day 3 = Minute.`
      </td>

      <td>
        3
      </td>
    </tr>

    <tr>
      <td>
        GdprComputed
      </td>

      <td>
        boolean
      </td>

      <td>
        If true, the request has [GDPR consent](https://dev.kevel.com/docs/gdpr-compliance-and-consent-settings) either from the request itself, from a UserDB record etc
      </td>

      <td>
        true
      </td>
    </tr>

    <tr>
      <td>
        GdprConsentRequired
      </td>

      <td>
        boolean
      </td>

      <td>
        Flag passed in the request indicating if consent is required
      </td>

      <td>
        false
      </td>
    </tr>

    <tr>
      <td>
        GdprSource
      </td>

      <td>
        string
      </td>

      <td>
        Source of GDPR consent information. '+' separated string of values: 'blk', 'req', 'udb', 'req'. example: 'req+udb'.
      </td>

      <td>
        "req" or "udb"
      </td>
    </tr>

    <tr>
      <td>
        IsValidUa
      </td>

      <td>
        boolean
      </td>

      <td>
        Flag indicating if the user agent is valid
      </td>

      <td>
        true
      </td>
    </tr>

    <tr>
      <td>
        Keywords
      </td>

      <td>
        json
      </td>

      <td>
        JSON array of keywords
      </td>

      <td>
        `["shoes", "sports"]`
      </td>
    </tr>

    <tr>
      <td>
        LocationCity
      </td>

      <td>
        string
      </td>

      <td>
        City name
      </td>

      <td>
        "San Francisco"
      </td>
    </tr>

    <tr>
      <td>
        LocationCountryCode
      </td>

      <td>
        string
      </td>

      <td>
        Country code. Can be referenced [here](https://dev.kevel.com/reference/list-geo-codes).
      </td>

      <td>
        "US"
      </td>
    </tr>

    <tr>
      <td>
        LocationCountryName
      </td>

      <td>
        string
      </td>

      <td>
        Country name
      </td>

      <td>
        "United States"
      </td>
    </tr>

    <tr>
      <td>
        LocationDmaCode
      </td>

      <td>
        string
      </td>

      <td>
        DMA code
      </td>

      <td>
        "807"
      </td>
    </tr>

    <tr>
      <td>
        LocationLatitude
      </td>

      <td>
        float
      </td>

      <td>
        Latitude coordinate
      </td>

      <td>
        37.7749
      </td>
    </tr>

    <tr>
      <td>
        LocationLongitude
      </td>

      <td>
        float
      </td>

      <td>
        Longitude coordinate
      </td>

      <td>
        -122.4194
      </td>
    </tr>

    <tr>
      <td>
        LocationMetroCode
      </td>

      <td>
        string
      </td>

      <td>
        Metro code
      </td>

      <td>
        "SF"
      </td>
    </tr>

    <tr>
      <td>
        LocationPostalCode
      </td>

      <td>
        string
      </td>

      <td>
        Postal code
      </td>

      <td>
        "94105"
      </td>
    </tr>

    <tr>
      <td>
        LocationRegion
      </td>

      <td>
        string
      </td>

      <td>
        Region name
      </td>

      <td>
        "California"
      </td>
    </tr>

    <tr>
      <td>
        LocationSubregion
      </td>

      <td>
        string
      </td>

      <td>
        Subregion name
      </td>

      <td>
        "Bay Area"
      </td>
    </tr>

    <tr>
      <td>
        MatchingKeywords
      </td>

      <td>
        json
      </td>

      <td>
        JSON array of matching keywords
      </td>

      <td>
        `["shoes", "sports"]`
      </td>
    </tr>

    <tr>
      <td>
        MatchedSearchTerm
      </td>

      <td>
        string
      </td>

      <td>
        The targeted term the shopper's query matched — the term configured on the Ad or Flight, not the raw query. See [Search Term Targeting](https://dev.kevel.com/docs/search-term-targeting).
      </td>

      <td>
        "dog food"
      </td>
    </tr>

    <tr>
      <td>
        MatchedSegmentIds
      </td>

      <td>
        vector
      </td>

      <td>
        Array of matching segments
      </td>

      <td>
        `[154, 155]`
      </td>
    </tr>

    <tr>
      <td>
        ModifiedPrice
      </td>

      <td>
        float
      </td>

      <td>
        Modified price value, for when Bid Modifiers are used
      </td>

      <td>
        0.75
      </td>
    </tr>

    <tr>
      <td>
        NetworkId
      </td>

      <td>
        string
      </td>

      <td>
        Identifier for the network
      </td>

      <td>
        "12345"
      </td>
    </tr>

    <tr>
      <td>
        OptimizedPrice
      </td>

      <td>
        float
      </td>

      <td>
        Optimized price value, after factoring in auto-bidding, second pricing and bid modifiers
      </td>

      <td>
        0.80
      </td>
    </tr>

    <tr>
      <td>
        PlacementName
      </td>

      <td>
        string
      </td>

      <td>
        Name of the placement, as specified by 'divName' in the Ad Decision Request
      </td>

      <td>
        "homepage\_leaderboard"
      </td>
    </tr>

    <tr>
      <td>
        Price
      </td>

      <td>
        float
      </td>

      <td>
        Price of the Flight that is associated with the impression e.g. $20.70.
      </td>

      <td>
        20.70
      </td>
    </tr>

    <tr>
      <td>
        PriorityId
      </td>

      <td>
        bigint
      </td>

      <td>
        PriorityId of the Flight that is associated with the impression
      </td>

      <td>
        123456
      </td>
    </tr>

    <tr>
      <td>
        RateType
      </td>

      <td>
        integer
      </td>

      <td>
        [Rate type](https://dev.kevel.com/docs/flights#flight-fields) of the Flight that is associated with the impression
      </td>

      <td>
        1
      </td>
    </tr>

    <tr>
      <td>
        RelevancyScore
      </td>

      <td>
        float
      </td>

      <td>
        The relevancy score applied to the ad in this auction. See [relevancy score](https://dev.kevel.com/docs/relevancy-score)
      </td>

      <td>
        500.0
      </td>
    </tr>

    <tr>
      <td>
        Revenue
      </td>

      <td>
        bigint
      </td>

      <td>
        Revenue generated from the event (impression, click, conversion)May be altered by [revenue modifying parameters](https://dev.kevel.com/docs/metadata-on-impressions-and-clicks#revenue-aka-advertiser-ad-spend) .
      </td>

      <td>
        50000
      </td>
    </tr>

    <tr>
      <td>
        SearchTerm
      </td>

      <td>
        string
      </td>

      <td>
        The shopper's search query, exactly as sent on the ad decision request.
      </td>

      <td>
        "puppy chow"
      </td>
    </tr>

    <tr>
      <td>
        SiteId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the Site that the ad is selected in
      </td>

      <td>
        1234567
      </td>
    </tr>

    <tr>
      <td>
        TargetedSearchTerms
      </td>

      <td>
        json
      </td>

      <td>
        Search terms configured on the Ad or Flight, grouped by match type, each with `include` and `exclude` lists. See [Search Term Targeting](https://dev.kevel.com/docs/search-term-targeting).
      </td>

      <td>
        {"broad": {"include": \["dog food"], "exclude": \["cat food"]}}
      </td>
    </tr>

    <tr>
      <td>
        TimeZoneId
      </td>

      <td>
        string
      </td>

      <td>
        Identifier for the [time zone](https://dev.kevel.com/docs/time-zones-1#available-time-zones-strings)
      </td>

      <td>
        "America/Los\_Angeles"
      </td>
    </tr>

    <tr>
      <td>
        UserKey
      </td>

      <td>
        string
      </td>

      <td>
        Key identifying the user
      </td>

      <td>
        "ue\_e8be4e08dc0345e1b94157f104a5b2ef"
      </td>
    </tr>

    <tr>
      <td>
        ZoneId
      </td>

      <td>
        bigint
      </td>

      <td>
        Identifier for the Zone that the ad is selected in
      </td>

      <td>
        1234567
      </td>
    </tr>
  </tbody>
</Table>

<br />