Sponsored Campaigns – How‑To Guide

Step‑by‑step instructions for creating, managing and using Free Internet campaigns.

Feature flag: ensure FEATURE_FREE_INTERNET_CAMPAIGNS=1 is set in the backend environment. Admin endpoints and UI will only be available when the flag is enabled.

1) Concepts

2) Create a Campaign

  1. Open Admin → Campaigns.
  2. Click Add campaign (if present) or use your API to seed initial data.
  3. Provide:
    • Name
    • Product: must exist under Products
    • Corporate Customer Name: exactly as in Porta (resolved to i_customer)
    • Discount %, Verification Markup % (optional)
    • Per‑device limit, Status (active to enable)
  4. Save. The backend will cache the corporate balance (inverted so positive means funds available).

3) Add/Manage Videos

  1. Select a campaign from the list.
  2. Scroll to the Videos section and click Add video.
  3. Enter video URL and choose the Source:
    • cdn/external: regular video file/stream. You can enable verification.
    • youtube/vimeo: embedded players; verification is automatically disabled.
  4. Optionally set acceptance criteria (required percent watched, etc.).

4) Refresh Balance

From a campaign row, use Refresh balance to pull the latest corporate balance from Porta. The system also attempts a just‑in‑time refresh when a campaign is borderline.

5) Completing a Campaign

When funds are exhausted or you want to stop the campaign, use Complete. This sets status to completed and removes it from eligibility checks.

6) Portal Flow (User Experience)

  1. Portal page calls /api/campaigns/free-internet/available with FAS snapshot.
  2. If eligible, the backend creates a reservation and returns a watch token and video info.
  3. On completion, the portal calls /complete. Backend charges corporate, issues a voucher, blocks it, records redemption, and records a session. AP access is enforced by OpenNDS AuthMon polling our backend (no direct push).

7) Troubleshooting

8) References

© INET Wi‑Fi Portal