The Campaigns page atDocumentation 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.
/advertiser/campaigns gives you a complete view of every ad campaign associated with your account. From here you can monitor performance metrics at a glance, open the campaign modal to make inline edits, and permanently remove campaigns you no longer need — all from a single paginated table.
Campaign List View
Campaigns are displayed in aCampaignsTable component that renders a table with the following columns passed via the headings prop:
| Column | Description |
|---|---|
| Name | The campaign title as entered during creation |
| Status | Current lifecycle status of the campaign |
| Budget | Total allocated budget for the campaign |
| Clicks | Number of clicks recorded against the campaign |
| Ctr | Click-through rate expressed as a percentage |
| Edit | Action button (...) that opens the Campaign Modal |
Campaign Status Values
Every campaign carries one of four status values that reflect its current lifecycle stage.| Status | Meaning |
|---|---|
Active | Campaign is currently running and serving ads |
End | Campaign has reached its end date and is no longer running |
Live | Campaign has been published and is actively live |
Deleted | Campaign has been removed and is no longer visible in standard views |
Editing a Campaign
Click the... (MoreHorizontal) icon in the Edit column of any row to open the Campaign Modal for that campaign. The modal pre-fills all existing campaign values and exposes three actions.
Campaign Modal Actions
- Edit — Updates the campaign’s title, description, budget, duration, and status via
PATCH /api/campaign. Changes take effect immediately and are reflected in the table on the next render. - Delete — Permanently removes the campaign from the database via
DELETE /api/campaign. This action cannot be undone. - Cancel — Closes the modal and discards any unsaved changes.
Edit Request
prevTitle field is used to locate the existing document in MongoDB, since the title acts as a human-readable identifier during the update operation.
Delete Request
id is the MongoDB _id string of the campaign document. Once deleted, the campaign is permanently removed and cannot be recovered from the UI.
Pagination
ThePagination component beneath the table lets you navigate through your full campaign list. The page size defaults to 5 campaigns per page. The current page number and total page count are computed inside the CampaignsTable component from the length of the campaignsData array passed as a prop.