code wiki / _hdl_build / nx_ad_reach.nx

nx_ad_reach.nx

buildroot/runtime/_hdl_build/nx_ad_reach.nx

2248 B44 linesdepth 3pulls 4 transitivereach 1 importersview sourcekind librarytopic ad
docsdependenciesstructsconstsfunctions

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

nx_ad_view.nx nx_ad_botfilter.nx nx_syscalls.nx nx_ad_reach.nx nx_ad_reach_gate.nx

imports: nx_ad_view.nxnx_ad_botfilter.nxnx_syscalls.nx

imported by: nx_ad_reach_gate.nx

structs

none

consts

none

functions

14func ar_billable_one(viewed: i64, dwell_ms: i64, ua: i64, src: i64, js: i64, min_ms: i64, rules: *i64, nrules: i64) -> i64
called by 2: ar_tallymain calls 2: av_viewablebf_invalid
23func ar_tally(ev: *i64, m: i64, min_ms: i64, rules: *i64, nrules: i64, osv: *i64, ovw: *i64, obill: *i64) -> i64
called by 1: main calls 2: av_viewablear_billable_one