Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Priyanshu471/ad-management/llms.txt

Use this file to discover all available pages before exploring further.

The Campaigns page gives content creators a dual-table view of campaign activity. The top table highlights the highest-performing active campaigns platform-wide, and the table below lists every campaign in the system with per-row earnings, audience reach, and CTR data. Use this page to track campaign performance and spot which creative approaches are driving the best results. Route: /creator/campaigns

Campaign Tables

The page renders two distinct tables sourced from campaignsData in lib/data.ts:

Top Campaigns

TopCampaignsTable — Displays up to 5 campaigns whose status is "Active" or "Live". Columns: Name, Status, Budget, Click, CTR.

Your Campaigns

YourCampaignsTable — Displays all campaigns with pagination (5 per page). Columns: Name, Status, Earnings, Audience Reach, CTR.

Top Campaigns Table

The TopCampaignsTable component filters campaignsData to entries where status === "Active" or status === "Live", then renders the first 5 results. Each row exposes:
ColumnSource fieldNotes
Namecampaign.titleCampaign title text
Statuscampaign.statusRendered via the Status badge component
Budgetcampaign.budgetPrefixed with ₹
Clickcampaign.clickFalls back to campaign.objective when click is absent
CTRcampaign.ctrDisplayed as a percentage (e.g. "5%"); falls back to campaign.duration + " days left"

Your Campaigns Table

The YourCampaignsTable component renders all entries from campaignsData with client-side pagination at 5 rows per page. Each row exposes:
ColumnSourceNotes
Namecampaign.titleCampaign title text
Statuscampaign.statusRendered via the Status badge component
EarningsStatic listPre-set earnings values per row (e.g. "₹1,000", "₹6,300")
Audience ReachStatic listPre-set reach values per row (e.g. "5667", "46483")
CTRcampaign.ctrDisplayed as a percentage; falls back to campaign.duration + " days left"
Use the pagination controls at the bottom of the table to step through all campaign pages.

Campaign Data Structure

Campaign entries are typed as Campaign objects, defined in lib/data.ts:
type Campaign = {
  id: string;
  title: string;
  description?: string;
  status: "Active" | "End" | "Live" | "Deleted";
  impression: number;
  click?: number;
  ctr: string;
  budget: string;
  duration?: string;
  objective?: string;
};

Campaign Status Values

StatusMeaning
ActiveCampaign is currently running
LiveCampaign is live and visible to the audience
EndCampaign has concluded
DeletedCampaign has been removed
The Top Campaigns table shows only Active and Live entries. The Your Campaigns table shows all statuses.
Check the Top Campaigns table to see which currently active campaigns have the highest click counts and CTR. Aligning your content with those high-performing campaigns is the fastest way to improve the metrics shown in the Your Campaigns table.

Build docs developers (and LLMs) love