Verify EBAY_AFFILIATE_CAMPAIGN_ID is set in cloud .env #38

Closed
opened 2026-04-13 12:07:53 -07:00 by pyr0ball · 0 comments
Owner

Problem

_wrap_affiliate_url() is already called in _serialize_listing() in api/main.py. The affiliate_active flag is returned with every search response. However, if EBAY_AFFILIATE_CAMPAIGN_ID is missing or empty in the cloud .env, all listing URLs are served unwrapped and no affiliate revenue is earned.

Action

  1. Check /Library/Development/CircuitForge/snipe/.env (cloud deploy) for EBAY_AFFILIATE_CAMPAIGN_ID
  2. If missing: obtain campaign ID from eBay Partner Network and add it
  3. Verify affiliate_active: true is returned in a live search response after deploy
  4. Update .env.example to include the variable with an empty placeholder and comment

Context

With anonymous access enabled (see related issue), every public search is a potential affiliate click. This is the revenue model for the free tier.

## Problem `_wrap_affiliate_url()` is already called in `_serialize_listing()` in `api/main.py`. The `affiliate_active` flag is returned with every search response. However, if `EBAY_AFFILIATE_CAMPAIGN_ID` is missing or empty in the cloud `.env`, all listing URLs are served unwrapped and no affiliate revenue is earned. ## Action 1. Check `/Library/Development/CircuitForge/snipe/.env` (cloud deploy) for `EBAY_AFFILIATE_CAMPAIGN_ID` 2. If missing: obtain campaign ID from eBay Partner Network and add it 3. Verify `affiliate_active: true` is returned in a live search response after deploy 4. Update `.env.example` to include the variable with an empty placeholder and comment ## Context With anonymous access enabled (see related issue), every public search is a potential affiliate click. This is the revenue model for the free tier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/snipe#38
No description provided.