For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

◾Smartico DWH \ Transactional views, PAM

This page describes the transactional views that hold events reported by your platform (PAM): payments, casino, sports betting and bonuses.

The name of a view is the name of the event with the "tr_" prefix. For example, the view tr_acc_deposit_approved holds the event acc_deposit_approved. Read the general rules of the DWH on the Smartico Data Warehouse (DWH) page first.

Rules for all transactional views

  • One row is one event. The primary key is event_id.

  • Every view is partitioned by event_time. Always filter on it, and do not apply a function to the column in the filter.

  • The views keep the events of the last 1080 days.

  • A view appears in your dataset after its first event.

  • Money amounts are in the player's wallet currency, unless the description says "original currency". To get the amount in the label currency, divide it by user_to_label_cur_rate. The player's currency is core_wallet_currency in j_user.

  • The tables list the standard Smartico columns. A column is empty when your platform does not send that value. Some integrations fill extra columns of their own; they are not listed here.

  • Yes/No (BOOL) columns hold TRUE or are empty. Empty means false, so filter with IS NOT TRUE instead of = false.

  • An event can reach Smartico later than it happened (ingest_time is later than event_time). When you load data daily, read a few hours of overlap and remove duplicates by event_id.

Columns in every view:

Column
Type
Description

event_time

TIMESTAMP

Time of the event, as reported by your platform (UTC)

ingest_time

TIMESTAMP

Time when the event reached Smartico

label_id

INT64

Label ID

user_id

INT64

Smartico user ID. Joins to j_user_no_enums

event_id

INT64

ID of the event in Smartico. Use it to remove duplicates

user_to_label_cur_rate

NUMERIC

Rate from the player's currency to the label currency. Amount in the label currency = amount / user_to_label_cur_rate

The tables below list the other columns of each view.

Text of value IDs

The text of a column marked "ID of a value" is in a view of your dataset. Joins under each view names it for every such column:

  • For most columns, a view named lookup_ plus the name of the column. For example, the text of acc_last_deposit_payment_method is in dwh_ext_xxx.lookup_acc_last_deposit_payment_method.

  • A dm_ table for the casino game name, game provider and game type, and the sport and league of a selection. These columns have no lookup_ view.

A lookup_ view has two columns:

Column
Type
Description

id

INT64

The ID that the column holds

value

STRING

The text of the ID

  • It holds the values of your label and the values shared by all labels.

  • It is in your dataset when a transactional view of your dataset has the column.

  • A new value reaches the lookup view up to about an hour after it first appears. Use LEFT JOIN, so that the events of a new value stay in your totals; their text is empty until then.

  • For a column of type INT64[] (a list of IDs), use CROSS JOIN UNNEST on the column first, then join each ID.

Deposits of the last 7 days per payment method

Open sport bets of the last 7 days per sport (a list of IDs)

Payments & Wallet (from PAM)

dwh_ext_xxx.tr_acc_deposit_approved

Approved deposits. One row per deposit.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_deposit_amount

NUMERIC

Deposit amount

acc_last_original_deposit_amount

NUMERIC

Deposit amount in its original currency, not converted to the wallet currency

acc_last_deposit_payment_method

INT64

Payment method. ID of a value; text in lookup_acc_last_deposit_payment_method

acc_last_deposit_payment_submethod

INT64

Payment sub-method. ID of a value; text in lookup_acc_last_deposit_payment_submethod

acc_last_deposit_payment_provider

INT64

Payment provider. ID of a value; text in lookup_acc_last_deposit_payment_provider

acc_last_deposit_code

INT64

Deposit code used with the deposit. ID of a value (text in lookup_acc_last_deposit_code); acc_last_deposit_code_str has the code as text

acc_last_deposit_code_str

STRING

Deposit code used with the deposit, as text

acc_last_deposit_source

INT64

Source of the deposit. ID of a value; text in lookup_acc_last_deposit_source

acc_last_deposit_platform

INT64

Platform of the deposit. ID of a value; text in lookup_acc_last_deposit_platform

acc_last_package_id

STRING

ID of the deposit package

acc_deposit_cc_bin_code

STRING

BIN code of the credit card used for the deposit

acc_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts, so that a sum of the amounts gives the net amount

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

acc_gc_last_deposit_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the deposit

acc_sc_last_deposit_amount

NUMERIC

Sweepstakes: SC coins amount of the deposit

fin_last_trading_account_id

NUMERIC

Trading platforms: ID of the trading account

Deposits of the previous day: count without rollbacks, and the net amount in the label currency

dwh_ext_xxx.tr_acc_deposit_failed

Failed deposits. One row per failed deposit. The view has no amount of the failed deposit (only the sweepstakes coin amounts).

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_failed_deposit_code

INT64

Code or reason of the failure. ID of a value; text in lookup_acc_last_failed_deposit_code

acc_last_deposit_payment_method

INT64

Payment method. ID of a value; text in lookup_acc_last_deposit_payment_method

acc_last_deposit_payment_submethod

INT64

Payment sub-method. ID of a value; text in lookup_acc_last_deposit_payment_submethod

acc_last_deposit_payment_provider

INT64

Payment provider. ID of a value; text in lookup_acc_last_deposit_payment_provider

acc_last_deposit_code

INT64

Deposit code used with the deposit. ID of a value (text in lookup_acc_last_deposit_code); acc_last_deposit_code_str has the code as text

acc_last_deposit_code_str

STRING

Deposit code used with the deposit, as text

acc_last_deposit_source

INT64

Source of the deposit. ID of a value; text in lookup_acc_last_deposit_source

acc_last_deposit_platform

INT64

Platform of the deposit. ID of a value; text in lookup_acc_last_deposit_platform

acc_last_failed_package_id

STRING

ID of the deposit package

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

acc_gc_last_failed_deposit_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the failed deposit

acc_sc_last_failed_deposit_amount

NUMERIC

Sweepstakes: SC coins amount of the failed deposit

fin_last_trading_account_id

NUMERIC

Trading platforms: ID of the trading account

dwh_ext_xxx.tr_acc_withdrawal_requested

Withdrawals requested by players. One row per request.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_withdrawal_amount

NUMERIC

Withdrawal amount

acc_last_original_withdrawal_amount

NUMERIC

Withdrawal amount in its original currency, not converted to the wallet currency

acc_wd_payment_method

INT64

Payment method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_method

acc_wd_payment_sub_method

INT64

Payment sub-method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_sub_method

acc_wd_payment_provider

INT64

Payment provider of the withdrawal. ID of a value; text in lookup_acc_wd_payment_provider

acc_wd_platform

INT64

Platform from which the withdrawal was made. ID of a value; text in lookup_acc_wd_platform

acc_wd_source

INT64

Source of the withdrawal (for example on site or cash desk). ID of a value; text in lookup_acc_wd_source

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

dwh_ext_xxx.tr_acc_withdrawal_approved

Approved withdrawals. One row per withdrawal.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_withdrawal_amount

NUMERIC

Withdrawal amount

acc_last_original_withdrawal_amount

NUMERIC

Withdrawal amount in its original currency, not converted to the wallet currency

acc_wd_payment_method

INT64

Payment method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_method

acc_wd_payment_sub_method

INT64

Payment sub-method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_sub_method

acc_wd_payment_provider

INT64

Payment provider of the withdrawal. ID of a value; text in lookup_acc_wd_payment_provider

acc_wd_platform

INT64

Platform from which the withdrawal was made. ID of a value; text in lookup_acc_wd_platform

acc_wd_source

INT64

Source of the withdrawal (for example on site or cash desk). ID of a value; text in lookup_acc_wd_source

acc_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts, so that a sum of the amounts gives the net amount

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

acc_sc_last_withdrawal_amount

NUMERIC

Sweepstakes: SC coins amount of the withdrawal

fin_last_trading_account_id

NUMERIC

Trading platforms: ID of the trading account

dwh_ext_xxx.tr_acc_withdrawal_completed

Completed (paid out) withdrawals. One row per withdrawal.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_withdrawal_amount

NUMERIC

Withdrawal amount

acc_last_original_withdrawal_amount

NUMERIC

Withdrawal amount in its original currency, not converted to the wallet currency

acc_wd_payment_method

INT64

Payment method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_method

acc_wd_payment_sub_method

INT64

Payment sub-method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_sub_method

acc_wd_payment_provider

INT64

Payment provider of the withdrawal. ID of a value; text in lookup_acc_wd_payment_provider

acc_wd_platform

INT64

Platform from which the withdrawal was made. ID of a value; text in lookup_acc_wd_platform

acc_wd_source

INT64

Source of the withdrawal (for example on site or cash desk). ID of a value; text in lookup_acc_wd_source

acc_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts, so that a sum of the amounts gives the net amount

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

dwh_ext_xxx.tr_acc_withdrawal_cancelled

Canceled withdrawals. One row per canceled withdrawal.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_withdrawal_amount

NUMERIC

Withdrawal amount

acc_last_original_withdrawal_amount

NUMERIC

Withdrawal amount in its original currency, not converted to the wallet currency

acc_wd_payment_method

INT64

Payment method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_method

acc_wd_payment_sub_method

INT64

Payment sub-method of the withdrawal. ID of a value; text in lookup_acc_wd_payment_sub_method

acc_wd_payment_provider

INT64

Payment provider of the withdrawal. ID of a value; text in lookup_acc_wd_payment_provider

acc_wd_platform

INT64

Platform from which the withdrawal was made. ID of a value; text in lookup_acc_wd_platform

acc_wd_source

INT64

Source of the withdrawal (for example on site or cash desk). ID of a value; text in lookup_acc_wd_source

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

Casino Activity (from PAM)

Your platform reports casino play either as separate bets and wins (tr_casino_bet, tr_casino_win) or as one event per game round (tr_casino_bet_win). Use the views your platform fills.

dwh_ext_xxx.tr_casino_bet

Casino bets. One row per bet.

Joins:

Column
Type
Description

casino_last_bet_id

STRING

ID of the bet in your platform

casino_last_bet_amount

NUMERIC

Bet amount, real and bonus money

casino_last_bet_amount_real

NUMERIC

Bet amount, real money part

casino_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

casino_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

casino_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

casino_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

casino_last_bet_game_name

INT64

Name of the game. ID of a value; joins to dm_casino_game_name

casino_last_bet_game_provider

INT64

Game provider. ID of a value; joins to dm_casino_provider_name

casino_last_bet_game_type

INT64

Game type (for example slots). ID of a value; joins to dm_casino_game_type

casino_last_bet_game_type_arr

INT64[]

All game types of the game, when your platform gives a game several types. IDs of values; text in lookup_casino_last_bet_game_type_arr

casino_last_bet_game_sub_type

INT64

Sub-type of the game. ID of a value; text in lookup_casino_last_bet_game_sub_type

casino_last_bet_game_category

INT64

Another grouping of the game (for example e-games). ID of a value; text in lookup_casino_last_bet_game_category

casino_last_bet_game_vendor

INT64

Game vendor. ID of a value; text in lookup_casino_last_bet_game_vendor

casino_game_ext_id

STRING

ID of the game in your game catalog

casino_game_provider_ext_id

STRING

ID of the game provider in your game catalog

casino_game_type_ext_id

STRING

ID of the game type in your game catalog

casino_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_casino_last_bet_platform

casino_last_bet_status

INT64

Status of the bet, if your platform sends one. ID of a value; text in lookup_casino_last_bet_status

casino_is_free_bet

BOOL

TRUE for a free bet

casino_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

casino_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

casino_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

dwh_ext_xxx.tr_casino_win

Casino wins (results of bets). One row per result.

Joins:

Column
Type
Description

casino_last_bet_id

STRING

ID of the bet in your platform

casino_last_bet_amount

NUMERIC

Bet amount, real and bonus money

casino_last_bet_amount_real

NUMERIC

Bet amount, real money part

casino_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

casino_last_win_amount

NUMERIC

Win amount, real and bonus money. 0 for a lost bet

casino_last_win_amount_real

NUMERIC

Win amount, real money part

casino_last_win_amount_bonus

NUMERIC

Win amount, bonus money part

casino_last_bet_profit

NUMERIC

Player's result in real money: real win minus real bet

casino_last_bet_profit_total

NUMERIC

Player's result: total win minus total bet (real and bonus money)

casino_last_win_multiplier

NUMERIC

Win amount divided by bet amount (real and bonus money). 0 for a lost bet

casino_last_win_multiplier_real

NUMERIC

Win amount divided by bet amount, real money only

casino_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

casino_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

casino_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

casino_last_original_win_amount

NUMERIC

Win amount in its original currency, not converted to the wallet currency

casino_last_original_win_amount_real

NUMERIC

Original-currency win amount, real money part

casino_last_original_win_amount_bonus

NUMERIC

Original-currency win amount, bonus money part

casino_last_bet_game_name

INT64

Name of the game. ID of a value; joins to dm_casino_game_name

casino_last_bet_game_provider

INT64

Game provider. ID of a value; joins to dm_casino_provider_name

casino_last_bet_game_type

INT64

Game type (for example slots). ID of a value; joins to dm_casino_game_type

casino_last_bet_game_type_arr

INT64[]

All game types of the game, when your platform gives a game several types. IDs of values; text in lookup_casino_last_bet_game_type_arr

casino_last_bet_game_sub_type

INT64

Sub-type of the game. ID of a value; text in lookup_casino_last_bet_game_sub_type

casino_last_bet_game_category

INT64

Another grouping of the game (for example e-games). ID of a value; text in lookup_casino_last_bet_game_category

casino_last_bet_game_vendor

INT64

Game vendor. ID of a value; text in lookup_casino_last_bet_game_vendor

casino_game_ext_id

STRING

ID of the game in your game catalog

casino_game_provider_ext_id

STRING

ID of the game provider in your game catalog

casino_game_type_ext_id

STRING

ID of the game type in your game catalog

casino_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_casino_last_bet_platform

casino_last_bet_status

INT64

Status of the bet, if your platform sends one. ID of a value; text in lookup_casino_last_bet_status

casino_is_free_bet

BOOL

TRUE for a free bet

casino_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

casino_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

casino_gc_win_amount

NUMERIC

Sweepstakes: win amount in gold coins (GC)

casino_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

casino_sc_win_amount

NUMERIC

Sweepstakes: win amount in SC coins

dwh_ext_xxx.tr_casino_bet_win

Casino game rounds, with the bet and the win in one row. One row per round.

Joins:

Column
Type
Description

casino_last_bet_id

STRING

ID of the bet in your platform

casino_last_bet_amount

NUMERIC

Bet amount, real and bonus money

casino_last_bet_amount_real

NUMERIC

Bet amount, real money part

casino_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

casino_last_win_amount

NUMERIC

Win amount, real and bonus money. 0 for a lost bet

casino_last_win_amount_real

NUMERIC

Win amount, real money part

casino_last_win_amount_bonus

NUMERIC

Win amount, bonus money part

casino_last_bet_profit

NUMERIC

Player's result in real money: real win minus real bet

casino_last_bet_profit_total

NUMERIC

Player's result: total win minus total bet (real and bonus money)

casino_last_win_multiplier

NUMERIC

Win amount divided by bet amount (real and bonus money). 0 for a lost bet

casino_last_win_multiplier_real

NUMERIC

Win amount divided by bet amount, real money only

casino_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

casino_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

casino_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

casino_last_original_win_amount

NUMERIC

Win amount in its original currency, not converted to the wallet currency

casino_last_original_win_amount_real

NUMERIC

Original-currency win amount, real money part

casino_last_original_win_amount_bonus

NUMERIC

Original-currency win amount, bonus money part

casino_last_bet_game_name

INT64

Name of the game. ID of a value; joins to dm_casino_game_name

casino_last_bet_game_provider

INT64

Game provider. ID of a value; joins to dm_casino_provider_name

casino_last_bet_game_type

INT64

Game type (for example slots). ID of a value; joins to dm_casino_game_type

casino_last_bet_game_type_arr

INT64[]

All game types of the game, when your platform gives a game several types. IDs of values; text in lookup_casino_last_bet_game_type_arr

casino_last_bet_game_sub_type

INT64

Sub-type of the game. ID of a value; text in lookup_casino_last_bet_game_sub_type

casino_last_bet_game_category

INT64

Another grouping of the game (for example e-games). ID of a value; text in lookup_casino_last_bet_game_category

casino_last_bet_game_vendor

INT64

Game vendor. ID of a value; text in lookup_casino_last_bet_game_vendor

casino_game_ext_id

STRING

ID of the game in your game catalog

casino_game_provider_ext_id

STRING

ID of the game provider in your game catalog

casino_game_type_ext_id

STRING

ID of the game type in your game catalog

casino_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_casino_last_bet_platform

casino_last_bet_status

INT64

Status of the bet, if your platform sends one. ID of a value; text in lookup_casino_last_bet_status

casino_last_session_bet_count

NUMERIC

Number of bets in the player's last casino session

casino_last_session_avg_bet_amount

NUMERIC

Average bet amount in the player's last casino session

casino_is_free_bet

BOOL

TRUE for a free bet

casino_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

casino_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

casino_gc_win_amount

NUMERIC

Sweepstakes: win amount in gold coins (GC)

casino_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

casino_sc_win_amount

NUMERIC

Sweepstakes: win amount in SC coins

Top 10 games of the previous day by bet amount in the label currency, from tr_casino_bet_win

Sports Betting (from PAM)

A sport bet comes as four events: the bet is opened, each selection is opened, each selection is settled, and the bet is settled. sport_last_bet_id is the same in all four views, so use it to join them.

dwh_ext_xxx.tr_sport_bet_open

Sport bets placed. One row per bet.

Joins:

Column
Type
Description

sport_last_bet_id

STRING

ID of the bet in your platform. The same in the bet open, selection open, selection settled and bet settled views

sport_match_id

STRING

ID of the match

sport_last_bet_amount

NUMERIC

Bet amount for the whole bet (all selections), real and bonus money

sport_last_bet_amount_real

NUMERIC

Bet amount, real money part

sport_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

sport_last_bonus_bet_amount

NUMERIC

Bonus bet amount for the whole bet, as your platform reports it

sport_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

sport_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

sport_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

sport_last_bet_odds

NUMERIC

Odds of the bet

sport_last_max_selection_odds

NUMERIC

Highest odds among the selections of the bet

sport_last_min_selection_odds

NUMERIC

Lowest odds among the selections of the bet

sport_last_bet_selection_count

NUMERIC

Number of selections in the bet

sport_last_bet_type

INT64

Type of the bet (for example single, combo or system). ID of a value; text in lookup_sport_last_bet_type

sport_last_bet_timing

INT64

Live or pre-match. ID of a value; text in lookup_sport_last_bet_timing

sport_last_bet_sports

INT64[]

Sports of the selections. IDs of values; text in lookup_sport_last_bet_sports

sport_last_bet_leagues

INT64[]

Leagues of the selections. IDs of values; text in lookup_sport_last_bet_leagues

sport_last_bet_markets

INT64[]

Markets of the selections. IDs of values; text in lookup_sport_last_bet_markets

sport_last_bet_competitors

INT64[]

Competitors of the selections. IDs of values; text in lookup_sport_last_bet_competitors

sport_last_bet_match_ids

INT64[]

Matches of the selections. IDs of values (text in lookup_sport_last_bet_match_ids), not the match IDs; the match ID is in sport_match_id

sport_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_sport_last_bet_platform

sport_last_bet_provider

INT64

Sportsbook provider. ID of a value; text in lookup_sport_last_bet_provider

sport_last_bet_virtual

BOOL

TRUE for a bet on a virtual sport

sport_is_bet_builder

BOOL

TRUE for a bet builder bet

sport_is_free_bet

BOOL

TRUE for a free bet

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

sport_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

sport_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

dwh_ext_xxx.tr_sport_bet_selection_open

Selections of placed sport bets. One row per selection.

Joins:

Column
Type
Description

sport_last_bet_id

STRING

ID of the bet in your platform. The same in the bet open, selection open, selection settled and bet settled views

sport_last_selection_id

STRING

ID of the selection in your platform

sport_match_id

STRING

ID of the match

sport_last_bet_amount

NUMERIC

Bet amount for the whole bet (all selections), real and bonus money

sport_last_bet_amount_real

NUMERIC

Bet amount, real money part

sport_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

sport_last_bonus_bet_amount

NUMERIC

Bonus bet amount for the whole bet, as your platform reports it

sport_last_selection_bet_amount

NUMERIC

Bet amount of this selection

sport_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

sport_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

sport_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

sport_last_selection_odds

NUMERIC

Odds of this selection

sport_last_max_selection_odds

NUMERIC

Highest odds among the selections of the bet

sport_last_min_selection_odds

NUMERIC

Lowest odds among the selections of the bet

sport_last_bet_selection_count

NUMERIC

Number of selections in the bet

sport_last_bet_type

INT64

Type of the bet (for example single, combo or system). ID of a value; text in lookup_sport_last_bet_type

sport_last_selection_sport_type

INT64

Sport of the selection. ID of a value; joins to dm_sport_type

sport_last_selection_league

INT64

League of the selection. ID of a value; joins to dm_sport_league

sport_last_selection_market

INT64

Market of the selection. ID of a value; text in lookup_sport_last_selection_market

sport_last_selection_home_team

INT64

Home team. ID of a value; text in lookup_sport_last_selection_home_team

sport_last_selection_away_team

INT64

Away team. ID of a value; text in lookup_sport_last_selection_away_team

sport_last_selection_competitors

INT64[]

Competitors of the selection. IDs of values; text in lookup_sport_last_selection_competitors

sport_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_sport_last_bet_platform

sport_last_bet_provider

INT64

Sportsbook provider. ID of a value; text in lookup_sport_last_bet_provider

sport_last_selection_is_live

BOOL

TRUE for a live selection

sport_last_selection_virtual

BOOL

TRUE for a selection on a virtual sport

sport_is_bet_builder

BOOL

TRUE for a bet builder bet

sport_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

sport_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

dwh_ext_xxx.tr_sport_bet_selection_settled

Settled selections of sport bets. One row per selection.

Joins:

Column
Type
Description

sport_last_bet_id

STRING

ID of the bet in your platform. The same in the bet open, selection open, selection settled and bet settled views

sport_last_selection_id

STRING

ID of the selection in your platform

sport_match_id

STRING

ID of the match

sport_last_bet_amount

NUMERIC

Bet amount for the whole bet (all selections), real and bonus money

sport_last_bet_amount_real

NUMERIC

Bet amount, real money part

sport_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

sport_last_bonus_bet_amount

NUMERIC

Bonus bet amount for the whole bet, as your platform reports it

sport_last_selection_bet_amount

NUMERIC

Bet amount of this selection

sport_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

sport_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

sport_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

sport_last_selection_odds

NUMERIC

Odds of this selection

sport_last_max_selection_odds

NUMERIC

Highest odds among the selections of the bet

sport_last_min_selection_odds

NUMERIC

Lowest odds among the selections of the bet

sport_last_bet_selection_count

NUMERIC

Number of selections in the bet

sport_last_bet_type

INT64

Type of the bet (for example single, combo or system). ID of a value; text in lookup_sport_last_bet_type

sport_last_selection_settlement_status

INT64

Result of the selection. ID of a value; text in lookup_sport_last_selection_settlement_status

sport_last_selection_bet_status

INT64

Status of the whole bet when this selection was settled (for example won, lost, void, cash-out). ID of a value; text in lookup_sport_last_selection_bet_status

sport_last_selection_sport_type

INT64

Sport of the selection. ID of a value; joins to dm_sport_type

sport_last_selection_league

INT64

League of the selection. ID of a value; joins to dm_sport_league

sport_last_selection_market

INT64

Market of the selection. ID of a value; text in lookup_sport_last_selection_market

sport_last_selection_home_team

INT64

Home team. ID of a value; text in lookup_sport_last_selection_home_team

sport_last_selection_away_team

INT64

Away team. ID of a value; text in lookup_sport_last_selection_away_team

sport_last_selection_competitors

INT64[]

Competitors of the selection. IDs of values; text in lookup_sport_last_selection_competitors

sport_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_sport_last_bet_platform

sport_last_bet_provider

INT64

Sportsbook provider. ID of a value; text in lookup_sport_last_bet_provider

sport_original_bet_date

TIMESTAMP

Time when the bet was placed

sport_last_selection_is_live

BOOL

TRUE for a live selection

sport_last_selection_virtual

BOOL

TRUE for a selection on a virtual sport

sport_is_bet_builder

BOOL

TRUE for a bet builder bet

sport_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

sport_gc_win_amount

NUMERIC

Sweepstakes: win amount in gold coins (GC)

sport_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

sport_sc_win_amount

NUMERIC

Sweepstakes: win amount in SC coins

dwh_ext_xxx.tr_sport_bet_settled

Settled sport bets. One row per bet.

Joins:

Column
Type
Description

sport_last_bet_id

STRING

ID of the bet in your platform. The same in the bet open, selection open, selection settled and bet settled views

sport_match_id

STRING

ID of the match

sport_last_bet_amount

NUMERIC

Bet amount for the whole bet (all selections), real and bonus money

sport_last_bet_amount_real

NUMERIC

Bet amount, real money part

sport_last_bet_amount_bonus

NUMERIC

Bet amount, bonus money part

sport_last_bonus_bet_amount

NUMERIC

Bonus bet amount for the whole bet, as your platform reports it

sport_last_bet_win_amount

NUMERIC

Win amount, real and bonus money

sport_last_bet_win_amount_real

NUMERIC

Win amount, real money part

sport_last_bet_win_amount_bonus

NUMERIC

Win amount, bonus money part

sport_last_bet_profit

NUMERIC

Player's result in real money: real win minus real bet

sport_last_bet_profit_total

NUMERIC

Player's result: total win minus total bet

sport_last_original_bet_amount

NUMERIC

Bet amount in its original currency, not converted to the wallet currency

sport_last_original_bet_amount_real

NUMERIC

Original-currency bet amount, real money part

sport_last_original_bet_amount_bonus

NUMERIC

Original-currency bet amount, bonus money part

sport_last_original_win_amount

NUMERIC

Win amount in its original currency, not converted to the wallet currency

sport_last_original_win_amount_real

NUMERIC

Original-currency win amount, real money part

sport_last_original_win_amount_bonus

NUMERIC

Original-currency win amount, bonus money part

sport_last_bet_odds

NUMERIC

Odds of the bet

sport_last_max_selection_odds

NUMERIC

Highest odds among the selections of the bet

sport_last_min_selection_odds

NUMERIC

Lowest odds among the selections of the bet

sport_last_bet_selection_count

NUMERIC

Number of selections in the bet

sport_last_bet_type

INT64

Type of the bet (for example single, combo or system). ID of a value; text in lookup_sport_last_bet_type

sport_last_bet_timing

INT64

Live or pre-match. ID of a value; text in lookup_sport_last_bet_timing

sport_last_settlement_status

INT64

Final status of the bet (for example won, lost, void, cash-out, canceled). ID of a value; text in lookup_sport_last_settlement_status

sport_last_bet_sports

INT64[]

Sports of the selections. IDs of values; text in lookup_sport_last_bet_sports

sport_last_bet_leagues

INT64[]

Leagues of the selections. IDs of values; text in lookup_sport_last_bet_leagues

sport_last_bet_markets

INT64[]

Markets of the selections. IDs of values; text in lookup_sport_last_bet_markets

sport_last_bet_competitors

INT64[]

Competitors of the selections. IDs of values; text in lookup_sport_last_bet_competitors

sport_last_bet_match_ids

INT64[]

Matches of the selections. IDs of values (text in lookup_sport_last_bet_match_ids), not the match IDs; the match ID is in sport_match_id

sport_last_bet_platform

INT64

Platform of the bet (for example web or mobile). ID of a value; text in lookup_sport_last_bet_platform

sport_last_bet_provider

INT64

Sportsbook provider. ID of a value; text in lookup_sport_last_bet_provider

sport_original_bet_date

TIMESTAMP

Time when the bet was placed

sport_last_bet_virtual

BOOL

TRUE for a bet on a virtual sport

sport_is_bet_builder

BOOL

TRUE for a bet builder bet

sport_is_free_bet

BOOL

TRUE for a free bet

sport_is_rollback

BOOL

TRUE when the transaction cancels an earlier one. A rollback should carry negative amounts

core_is_exclude_from_report

BOOL

TRUE when your platform marked the transaction to be left out of reports

acc_last_active_currency

INT64

For players with several wallets: the currency of the active wallet. ID of a value; text in lookup_acc_last_active_currency

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

sport_gc_bet_amount

NUMERIC

Sweepstakes: bet amount in gold coins (GC)

sport_gc_win_amount

NUMERIC

Sweepstakes: win amount in gold coins (GC)

sport_sc_bet_amount

NUMERIC

Sweepstakes: bet amount in SC coins

sport_sc_win_amount

NUMERIC

Sweepstakes: win amount in SC coins

Bets settled on the previous day, with the time they were placed (from the bet open view)

Bonuses (from PAM)

These views hold bonuses as your platform reports them. Bonuses that Smartico gives are on the Transactional views, System page.

dwh_ext_xxx.tr_acc_bonus_given

Bonuses given to players. One row per bonus.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_bonus_amount

NUMERIC

Bonus amount

acc_last_original_bonus_amount

NUMERIC

Bonus amount in its original currency, not converted to the wallet currency

acc_last_original_bonus_currency

INT64

Currency of the original bonus amount. ID of a value; text in lookup_acc_last_original_bonus_currency

acc_last_bonus_name

STRING

Name of the bonus

acc_last_bonus_code

STRING

Bonus code

acc_last_bonus_type

INT64

Type of the bonus. ID of a value; text in lookup_acc_last_bonus_type

acc_bonus_state

INT64

State of the bonus (for example active or suspended). ID of a value; text in lookup_acc_bonus_state

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_gc_last_bonus_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the bonus

acc_sc_last_bonus_amount

NUMERIC

Sweepstakes: SC coins amount of the bonus

dwh_ext_xxx.tr_acc_bonus_approved

Approved bonuses. One row per bonus.

Joins:

Column
Type
Description

acc_last_transaction_id

STRING

ID of the transaction in your platform

acc_last_bonus_amount

NUMERIC

Bonus amount

acc_last_original_bonus_amount

NUMERIC

Bonus amount in its original currency, not converted to the wallet currency

acc_last_original_bonus_currency

INT64

Currency of the original bonus amount. ID of a value; text in lookup_acc_last_original_bonus_currency

acc_last_bonus_release_amount

NUMERIC

Released amount of the bonus, as your platform reports it

acc_last_bonus_name

STRING

Name of the bonus

acc_last_bonus_code

STRING

Bonus code

acc_last_bonus_type

INT64

Type of the bonus. ID of a value; text in lookup_acc_last_bonus_type

acc_bonus_state

INT64

State of the bonus (for example active or suspended). ID of a value; text in lookup_acc_bonus_state

acc_utm_value

STRING

UTM marker that shows the marketing source of the transaction

acc_real_balance

NUMERIC

Real money balance after the transaction, as your platform reports it

acc_bonus_balance

NUMERIC

Bonus money balance after the transaction, as your platform reports it

acc_land_balance_real

NUMERIC

Land-based (retail) wallet: real money balance

acc_land_balance_bonus

NUMERIC

Land-based (retail) wallet: bonus balance

acc_land_balance_total

NUMERIC

Land-based (retail) wallet: total balance

acc_gc_last_bonus_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the bonus

acc_sc_last_bonus_amount

NUMERIC

Sweepstakes: SC coins amount of the bonus

dwh_ext_xxx.tr_acc_bonus_cancelled

Canceled bonuses. One row per bonus.

Joins:

Column
Type
Description

acc_last_bonus_amount

NUMERIC

Bonus amount

acc_last_original_bonus_amount

NUMERIC

Bonus amount in its original currency, not converted to the wallet currency

acc_last_original_bonus_currency

INT64

Currency of the original bonus amount. ID of a value; text in lookup_acc_last_original_bonus_currency

acc_last_bonus_name

STRING

Name of the bonus

acc_last_bonus_code

STRING

Bonus code

acc_last_bonus_type

INT64

Type of the bonus. ID of a value; text in lookup_acc_last_bonus_type

acc_bonus_state

INT64

State of the bonus (for example active or suspended). ID of a value; text in lookup_acc_bonus_state

acc_last_bonus_cancel_reason

INT64

Reason of the cancellation. ID of a value; text in lookup_acc_last_bonus_cancel_reason

acc_gc_last_bonus_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the bonus

acc_sc_last_bonus_amount

NUMERIC

Sweepstakes: SC coins amount of the bonus

dwh_ext_xxx.tr_acc_bonus_failed

Bonuses that failed. One row per bonus.

Joins:

Column
Type
Description

acc_last_bonus_amount

NUMERIC

Bonus amount

acc_last_original_bonus_amount

NUMERIC

Bonus amount in its original currency, not converted to the wallet currency

acc_last_original_bonus_currency

INT64

Currency of the original bonus amount. ID of a value; text in lookup_acc_last_original_bonus_currency

acc_last_bonus_name

STRING

Name of the bonus

acc_last_bonus_code

STRING

Bonus code

acc_last_bonus_type

INT64

Type of the bonus. ID of a value; text in lookup_acc_last_bonus_type

acc_bonus_state

INT64

State of the bonus (for example active or suspended). ID of a value; text in lookup_acc_bonus_state

acc_last_bonus_failed_reason

INT64

Reason of the failure. ID of a value; text in lookup_acc_last_bonus_failed_reason

acc_gc_last_bonus_amount

NUMERIC

Sweepstakes: gold coins (GC) amount of the bonus

acc_sc_last_bonus_amount

NUMERIC

Sweepstakes: SC coins amount of the bonus

Bonuses given on the previous day, per bonus name, in the label currency

Last updated

Was this helpful?