map_paid_campaign
Map an imported campaign to one of ours
Links a campaign as the ad platform names it (an external campaign from list_paid_performance, level campaign) to one of the workspace's own campaigns (list_campaigns), so its spend sits beside that campaign's leads and sales.
Until a campaign is linked, its spend is left out of cost per lead, cost per sale and observed ROAS. Call it with only external_campaign_id to see the importer's own suggestion (from utm_campaign or the name against the reference code) without changing anything; pass campaign_id to link, or unmap: true to remove the link. A suggestion is a guess from names: show it to the person and let them decide. A campaign cannot take spend in two currencies. This only changes how numbers are grouped here: nothing is changed at the ad platform.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
external_campaign_id |
string | yes | The imported campaign: the id of a campaign-level row in list_paid_performance, or the ad platform's own campaign id as it was imported. |
campaign_id |
string | no | The id of the workspace's own campaign to link it to. |
unmap |
boolean | no | True to remove the existing link. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
get_experiment · get_funnel_matrix · get_paid_draft · import_paid_results · list_ad_accounts · list_budget_requests · list_experiments · list_paid_drafts · list_paid_performance · manage_experiment · save_budget_request · save_experiment_draft · save_paid_draft