Search Campaigns By UTM Value
search_campaigns_by_utm_valueFind wizard campaign channels whose resolved UTM parameters contain a specified value. Returns matching campaigns, channels, values, and origin information with pagination. Inherited account or platform values are included; a stored mapping identical to its inherited default cannot be distinguished from inheritance.
TRACKING TIMING AND TOKEN MEANING: Leads using server-resolved campaign UTMs use the current saved mapping when the platform processes them, without waiting for an ad republish. Captured URL or caller-supplied values can follow a different ingestion path, so do not generalize this timing to every new lead. Native click-time macros retain values captured from the lead's click URL. Ad click URLs have a separate publication timeline: a draft uses the saved mapping at launch, and launched ads use it on their next campaign publish. Saving a launched Microsoft Ads campaign triggers a live UTM push. AD_NAME is a dynamic token, not necessarily an individual ad name: standard experiments use their ad group name when present, otherwise their creative name; native ad structures use the native ad's own name. CAMPAIGN_NAME uses the wizard campaign name. Saving a launched campaign can also queue an asynchronous existing-lead UTM refresh. Do not assume historical rows are immutable or that all old rows have already refreshed. Verify the saved mapping with get_campaign_utms and actual lead values and ingestion timing separately from live ad click URLs; a supplied or backfilled lead creation date alone does not prove when its UTMs were resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional: additional server-side campaign name substring filter. | |
| page | No | 0-based page index. Default: 0 | |
| size | No | Results per page. Default: 25 | |
| status | No | Campaign-level status filter. Comma-separated subset of Draft, Launched, Finished. Omit to include all three. | |
| sort_by | No | Field to sort by. Default: createdDate | |
| utm_value | Yes | Case-insensitive substring to look for in the campaigns' effective UTM values (e.g. 'UPDATE ME'). Minimum 3 characters. | |
| sort_order | No | Sort order. Default: desc | |
| visibility | No | Optional: filter by campaign visibility. Omit to include all. | |
| experiment_statuses | No | Experiment-level status filter. Comma-separated subset of Active, WithoutSpend, Paused, Completed, Failed. Omit to include all five. |