hermosodocs

create_linkedin_ads_campaign

Create a LinkedIn campaign (draft) destructive

Area: LINKEDIN POST BOOSTING · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Create a LinkedIn campaign inside an existing campaign group. Created DRAFT — it spends NOTHING until activated with set_linkedin_ads_status(confirm:true) — and a campaign on its own carries no creative, so it cannot serve an impression. Budget amounts are in the ad account’s currency; tell the user that LinkedIn may spend UP TO 150% of a daily budget on a high-opportunity day before they pick a number. Two LinkedIn behaviours to repeat rather than hide: on manual, target-cost or cost-cap bidding a unitCost of 0 means the campaign never delivers, and LinkedIn DEFERS some validation on DRAFT objects, so a clean create can still fail at activation — never promise it will run. TARGETING IS MANDATORY on LinkedIn — a campaign with no audience is refused outright — so pass locations (and optionally include/exclude facets like titles, industries, seniorities or staffCountRanges), or a raw targetingCriteria. Resolve every targeting value with search_linkedin_ads_targeting first: they are opaque URNs and MUST NOT be invented. LinkedIn’s own enums for type, objectiveType and costType are passed straight through, and LinkedIn’s refusal is surfaced verbatim if one is wrong. Read back before you are told it exists.

Parameters

ParameterTypeDescription
adAccountIdstringLinkedIn ad account id from list_linkedin_ads_campaigns
campaignGroupIdrequiredstringthe campaign group this campaign lives in — LinkedIn requires one
namerequiredstringcampaign name
typestringLinkedIn campaign type, e.g. SPONSORED_UPDATES
objectiveTypestringLinkedIn objective, e.g. WEBSITE_VISIT
costTypestringCPM / CPC / CPV
dailyBudgetnumberdaily budget in the ad account currency
totalBudgetnumbertotal budget in the ad account currency; optional
unitCostnumberthe bid
currencyCodestringmust match the ad account currency, e.g. USD
localeobjectLinkedIn locale object (country, language); leave unset for the default en/US
countrystringcampaign locale country, default US — this is the ad UI language market, NOT geo targeting. NEVER derive it from where the ad should run: targeting Canada still uses the US/en locale (LinkedIn refuses en_CA). Leave it alone unless the user explicitly asks for a different interface language.
languagestringcampaign locale language, default en
locationsstring[]REQUIRED unless targetingCriteria is given — geo URNs or bare geo ids from search_linkedin_ads_targeting
includeobjectfurther targeting facets ANDed onto locations, e.g. {titles:[…], industries:[…], seniorities:[…], staffCountRanges:[…]}
excludeobjectfacets to exclude, same shape
excludeLocationsstring[]geo URNs or ids to exclude from targeting
targetingCriteriaobjectLinkedIn’s raw targeting object — passed through and overrides locations/include/exclude
startDatestringYYYY-MM-DD; defaults to today
endDatestringYYYY-MM-DD; omit for an open-ended run
runScheduleobjectraw LinkedIn runSchedule object; startDate and endDate are simpler
organizationIdstringthe LinkedIn company Page this campaign advertises — LinkedIn REQUIRES it for Sponsored Content, Dynamic and Lead Gen campaigns
formatstringLinkedIn creative format value, passed through to LinkedIn
optimizationTargetTypestringLinkedIn optimization target value, passed through as LinkedIn names it
audienceExpansionEnabledbooleantrue lets LinkedIn expand delivery beyond the targeted audience
offsiteDeliveryEnabledbooleanalso serve on the LinkedIn Audience Network; default false
politicalIntent"POLITICAL" | "NOT_POLITICAL" | "NOT_DECLARED"REQUIRED for EU locations: ask the user (“I confirm this is not political advertising.”); never answer for them
status"DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED"default DRAFT
confirmbooleanREQUIRED true to create it ACTIVE under a LIVE campaign group

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_linkedin_ads_campaign.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_linkedin_ads_campaign","arguments":{"campaignGroupId":"<string>","name":"<string>"}}}

CLI

hermoso call create_linkedin_ads_campaign --json '{"campaignGroupId":"<string>","name":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json