Search Campaigns by Name
search_campaigns_by_namesSearch for campaigns by name to get campaign details, IDs, and status.
KEYWORDS: campaign, search, find, lookup, status, active, paused, draft, marketing, advertising
**USE THIS TOOL WHEN THE USER ASKS ABOUT:**
- Campaign details, information, or status
- Finding a campaign by name
- Getting campaign IDs
- Checking if a campaign exists
- Looking up campaign status (active, paused, draft)
- Any question containing words like: "campaign", "show me", "find", "search", "list", "details", "status"
**ALWAYS use this tool first** before launching, updating, or referencing any campaign.
SEARCH FEATURES:
- Partial, case-insensitive matching (e.g., "Q1" matches "Q1_2026_Campaign")
- One entry per searched name: the best match (the exact name when the account has one, else the newest neighbour), the other matches, and the best match's FULL campaign as `payload`
- Searches up to 150 campaigns per term
PARAMETERS:
- campaign_names: Array of campaign name strings to search for (required)
RETURNS:
{
"found_campaigns": [
{
"search_name": "LinkedIn_BoFu",
"id": 159490,
"name": "LinkedIn_BoFu_Q1_2026",
"statusLabel": "Active",
"visibility": "VISIBLE",
"exact_match": false,
"other_matches": [{"id": 159491, "name": "LinkedIn_BoFu_Q1_2026 v2", "statusLabel": "Draft", "visibility": "ARCHIVED", "exact_match": false}],
"payload": { ...the full campaign: channels[] with groups[] (audience groups, each with channelCustomAudiences[] carrying customAudienceId and name), groupsExclude[], targetingGroups[], adGroups[], landingPages[], leadGenForms[]... }
}
],
"missing_names": ["NonExistent"],
"total_found": 1
}
Read `exact_match` before treating the entry as the campaign the user named: a substring search also returns "<name> SaaS" for "<name>", and when no exact match exists the entry is a neighbour. `visibility` is ARCHIVED for an archived campaign. `payload` is the same document `get_campaign_by_wizard_id` returns, so no second read is needed for the campaign's audiences, ads or offers.
STATUS LABELS: Active, Paused, Draft, Completed, Unknown
Use returned campaign IDs with launch_campaign or manage_campaign tools.
Anchor all date-related decisions to the REAL current date — call get_current_date if you are not already certain what today is.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_names | Yes | Array of campaign names or partial names to search for (case-insensitive, partial matching) |