Member campaigns now go out as click offers on DripOffers
Third syndication rail. The first two send impressions; this one sends clicks — a real person picks the offer off the offerwall, goes to the member's link, and has to stay the dwell time before anyone is paid. Two things it does that the other rails can't: - It carries geo-targeted campaigns. DripOffers filters on an explicit country list, so a campaign aimed at Tier 1 finally reaches an outside audience instead of staying on our own site. Tier-3-only campaigns are skipped rather than quietly sent worldwide, because an inclusion list can't express "everywhere except the other tiers" and widening it would deliver exactly the traffic the owner chose to exclude. - Delivery is counted, not derived. It reads rows from the platform's permanent click ledger. It never computes delivery as ordered minus remaining, and pausing never zeroes remaining — that pair is what charged members for impressions that never ran on Network Ad Space. Also fixes two live bugs found while wiring it: the AdRevLinks pause was nested inside the Network Ad Space check in both the end sweep and setStatus, so with NAS switched off an ended or paused campaign kept running on AdRevLinks. Each rail is now checked on its own. Caps: 1,000 credits minimum, 10,000 clicks maximum per campaign. Not for cost — Marty owns the platform and these placements are free — but because the whole site delivers around 2,700 clicks a day, and one campaign booking 50,000 would sit in the list for weeks. Inert unless DRIPOFFERS_BRIDGE_URL and _KEY are set. 26 checks green against the live endpoint; member walk clean. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -120,6 +120,7 @@ async function bootstrap() {
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN height INT NULL'); // banner size (IAB) → also NAS height
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN nas_ad_id INT NULL'); // syndicated NAS sponsorads.ID
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN nas_served INT NOT NULL DEFAULT 0'); // NAS impressions already reconciled into spend
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN drip_id INT NULL'); // syndicated DripOffers campaigns.id (2026-09-18)
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN expires BIGINT NULL'); // featured rotation end time
|
||||
await alterSafe('ALTER TABLE campaigns ADD COLUMN starts BIGINT NULL'); // featured run start (booked day); any type: scheduled start
|
||||
await q(`CREATE TABLE IF NOT EXISTS camp_hours (
|
||||
|
||||
Reference in New Issue
Block a user