Text ads one price everywhere: on-site text 1 credit per 100 views (was 10), network text unchanged at 100 (nas ipc 100, divisor 1); chatbot + Campaigns copy updated (Marty 2026-11-20)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-20 05:16:56 -06:00
parent d86ab29302
commit 0b45058b6a
7 changed files with 18 additions and 12 deletions
+8 -3
View File
@@ -26,7 +26,10 @@ function rates() {
try { saved = JSON.parse(fs.readFileSync(RATES_FILE(), 'utf8')); } catch (e) {}
return Object.assign({
bannerBatch: 10, bannerCreditsPerBatch: 2,
textBatch: 10, textCreditsPerBatch: 1,
// TEXT ADS ON-SITE (Marty, 2026-11-20): 1 credit per 100 views (was 1 per 10). Text ads draw clicks at the same rate
// here and on Network Ad Space (about 1 per 2,500 views), so the on-site price now matches the network one and a text
// click costs about the same wherever it comes from. Going forward only, like the 10-27 and 11-12 changes.
textBatch: 100, textCreditsPerBatch: 1,
// Login ads are a flat slot buy: one price, 30 days, unlimited impressions, no
// delivery guarantee. Same total as the old 100/day x 30, but with a known end and
// no daily drain against inventory that may not exist that day.
@@ -99,7 +102,9 @@ function rates() {
// TEXT ADS (Marty, 2026-11-12): Network Ad Space shows text ads in huge volume for very few clicks (about 1 per 4,000
// views), so text budgets were gone in about a week. Text network views cost 1/synRateDivisorText of the on-site rate
// instead (1 credit = 100 network views). Banners keep synRateDivisor. Going forward only, like the 10-27 change.
synRateDivisorText: 10
// 2026-11-20: on-site text moved to the same 100 views per credit, so text is one price everywhere: the divisor is 1
// and nas.impressionsPerCredit('text') is 100 (network text stays 1 credit = 100 views, nothing changes there).
synRateDivisorText: 1
}, saved);
}
function setRates(patch) {
@@ -1818,7 +1823,7 @@ async function reconcileNas() {
// whole credits as they accrue: the cumulative served count carries the fraction, so nothing is lost or double-charged
const creditsDue = Math.floor(st.served / ipc) - Math.floor(prev / ipc);
if (creditsDue > 0) {
const res = await chargeCredits(c.id, creditsDue, { net: 'Network views (1/' + synDiv(c.type) + ' rate)' });
const res = await chargeCredits(c.id, creditsDue, { net: synDiv(c.type) > 1 ? 'Network views (1/' + synDiv(c.type) + ' rate)' : 'Network views' });
charged = res.charged || 0;
if (res.exhausted) { exhausted = true; await setNasServed(c.id, st.served); await stopNas(c.id, c.nasAdId); }
}