Game Session

Event Key

ootb_game_session

This event should be sent when a game is closed, summarizing a game session.

Event KeyEvent NameType
ootb_game_sessionOOTB Game SessionSimple event

Event Structure

The mandatory properties (tenant, timestamp, event, and customer) are required for all events and documented in detail on the Mandatory Properties page. Below is the JSON structure for the context-specific properties of the Game Session Event:

{
    "context": {
        "ootb_session_start_timestamp": "2024-05-27T10:30:00Z",
        "ootb_session_end_timestamp": "2024-05-27T10:32:00Z",
        "ootb_game_code": "game456",
        "ootb_game_name": "Blackjack",
        "ootb_game_category": "Table Games",
        "ootb_start_balance": 500.00,
        "ootb_end_balance": 500.00,
        "ootb_stakes": 200.00,
        "ootb_real_win_amount": 100.00,
        "ootb_bonus_used": 50.00,
        "ootb_bonus_win_amount": 100.00,
        "ootb_gross_gaming_revenue": 100.00,
        "ootb_number_of_bets": 2,
        "ootb_game_session_reference": "game_ses_456",
        "ootb_language": "English",
        "ootb_country": "USA",
        "ootb_platform": "iOS",
        "ootb_launch_location": "BingoLobby",
        "ootb_launch_location_index": 1,
        "ootb_channel": "Mobile",
        "ootb_brand": "",
        "ootb_license": "USA"
    }
}

Parameters

📘

Events-based Integration (EBI): parameter classification

The Events-based Integration column shows how each parameter is treated when you onboard using an Events-based Integration:

  • Mandatory — required for the event to be ingested and processed correctly.
  • Mandatory if required for the execution channel integration — required only when the relevant execution channel (e.g., email, SMS, push, WhatsApp) is part of your integration.
  • Enrichment- used for out-of-the-box attribute — not required, but when provided it powers an Optimove out-of-the-box attribute.
  • Optional — accepted and stored when provided; not required and not tied to an OOTB attribute.
Parameter KeyParameter NameTypeDescriptionMandatory for Opti-X?Events-based Integration
ootb_session_start_timestampSession Start TimestampStringISO 8601 datetime of starting a casino game session.YesOptional
ootb_session_end_timestampSession End TimestampStringISO 8601 datetime of ending a casino game session.YesMandatory
ootb_game_codeGame CodeString/NumberGame unique identifier/Game ID.YesMandatory
ootb_game_nameGame NameStringThe name of the game.NoMandatory
ootb_game_categoryGame CategoryStringThe category of the game (e.g., Slots, Roulette, Table, etc.).NoEnrichment- used for out-of-the-box attribute
ootb_start_balanceStart BalanceDecimalPlayer balance on game start.NoOptional
ootb_end_balanceEnd BalanceDecimalThe total balance at the end of the game session (start balance - stakes + real win amount + bonus win amount).NoOptional
ootb_stakesStakesDecimalMonetary real value that was wagered (real bet amount).YesMandatory
ootb_real_win_amountReal Win AmountDecimalMonetary real value that was won.NoEnrichment- used for out-of-the-box attribute
ootb_bonus_usedBonus UsedDecimalTotal bonus amount that was wagered/used in the game session.NoEnrichment- used for out-of-the-box attribute
ootb_bonus_win_amountBonus Win AmountDecimalTotal bonus amount that was won.NoEnrichment- used for out-of-the-box attribute
ootb_gross_gaming_revenueGross Gaming RevenueDecimalTotal revenue (GGR).YesMandatory
ootb_number_of_betsNumber of BetsNumberTotal number of bets/games played in a session.YesEnrichment- used for out-of-the-box attribute
ootb_game_session_referenceGame Session ReferenceStringReference to the game session event (optional).YesOptional
ootb_languageLanguageStringThe language of the player.NoOptional
ootb_countryCountryStringThe country of the player.NoOptional
ootb_platformPlatformStringThe platform used (e.g., iOS, Android).NoEnrichment- used for out-of-the-box attribute
ootb_launch_locationLaunch LocationStringThe container where the game was launched from (e.g., home, recently played, new game). Optional.NoOptional
ootb_launch_location_indexLaunch Location IndexNumberIndex of where in the container the game was launched from (optional).NoOptional
ootb_channelChannelStringThe channel through which an event was initiated (e.g., Mobile, Desktop, Tablet).NoOptional
ootb_brandBrandStringBrand ID/Name.NoOptional
ootb_licenseLicenseStringWhere they’re licensed to operate.NoOptional