code wiki / _hdl_build / nx_ad_reach.nx
nx_ad_reach.nx
buildroot/runtime/_hdl_build/nx_ad_reach.nx
about
nx_ad_reach.nx -- LIB (PURE): HONEST BILLABLE REACH. The ONLY impression count an advertiser is
charged for = impressions that are BOTH genuinely SEEN (viewable, MRC >=50%/>=1s) AND VALID (not
bot / invalid traffic). This unifies the operator's two laws in the MONEY path: "no fake impressions
like Google/others" (viewability) + "filter the bot/useless traffic for clients" (IVT). Composes
nx_ad_view + nx_ad_botfilter (DRY rule 15); both are aggregate, so this can never become per-user.
PRIVACY BY CONSTRUCTION: combined bucket = [viewed, dwell_ms, ua_class, src_class, js_class, n] --
all AGGREGATE class codes + a count; NO visitor id / IP / fingerprint. license_tier: ORIGINAL
dependencies 3 imports · 1 importers
imports: nx_ad_view.nxnx_ad_botfilter.nxnx_syscalls.nx
imported by: nx_ad_reach_gate.nx
structs
| none |
consts
| none |
functions
| 14 | func ar_billable_one(viewed: i64, dwell_ms: i64, ua: i64, src: i64, js: i64, min_ms: i64, rules: *i64, nrules: i64) -> i64 |
| 23 | func ar_tally(ev: *i64, m: i64, min_ms: i64, rules: *i64, nrules: i64, osv: *i64, ovw: *i64, obill: *i64) -> i64 |