Constructor: stats.broadcastRevenueStats
Channel revenue ad statistics, see here » for more info.
Note that all balances and currency amounts and graph values are in the smallest unit of the chosen cryptocurrency (currently nanotons for TONs, so to obtain a value in USD divide the chosen amount by 10^9
, and then divide by usd_rate
).
Attributes:
Name | Type | Required | Description |
---|---|---|---|
top_hours_graph | StatsGraph | Yes | Ad impressions graph |
revenue_graph | StatsGraph | Yes | Ad revenue graph (in the smallest unit of the cryptocurrency in which revenue is calculated) |
balances | BroadcastRevenueBalances | Yes | Current balance, current withdrawable balance and overall revenue |
usd_rate | double | Yes | Current conversion rate of the cryptocurrency (not in the smallest unit) in which revenue is calculated to USD |
Type: stats.BroadcastRevenueStats
Example:
$stats_broadcastRevenueStats = ['_' => 'stats.broadcastRevenueStats', 'top_hours_graph' => StatsGraph, 'revenue_graph' => StatsGraph, 'balances' => BroadcastRevenueBalances, 'usd_rate' => double];