Create LinkedIn Campaign
create_linkedin_campaignCreates a LinkedIn campaign. campaign_type: TEXT_AD | SPONSORED_UPDATES | SPONSORED_INMAILS | DYNAMIC | EVENT_AD. cost_type: CPC | CPM | CPV | CPS. Targeting: country ('TR','US','DE'… 36 verified country codes) sets the geo target; for finer targeting pass comma-separated 'urn:li:geo:...' values to geo_urns (found via linkedin_targeting_search). language sets the interface language (en/tr/de/fr/es). Budget is processed in the account's own currency (TRY on a TRY account). If total_budget>0 the total budget is used, otherwise daily_budget. associated_entity: the Company Page URN required for SPONSORED_UPDATES / SPONSORED_INMAILS / DYNAMIC / EVENT_AD campaigns, e.g. 'urn:li:organization:1234567'; if left empty it is auto-filled from the account's organization reference, otherwise an error is returned. Not needed for TEXT_AD. objective_type (LinkedIn's enum is SINGULAR — live-verified): WEBSITE_CONVERSION | WEBSITE_VISIT | WEBSITE_TRAFFIC | LEAD_GENERATION | BRAND_AWARENESS | ENGAGEMENT | VIDEO_VIEW | JOB_APPLICANT | CONVERSATION_STARTER | TALENT_LEAD | CREATIVE_ENGAGEMENT. Plural spellings (WEBSITE_CONVERSIONS / VIDEO_VIEWS / JOB_APPLICANTS) are auto-corrected. The objective CANNOT be changed after creation, so pick it now. ad_format is a SEPARATE axis from campaign_type and decides what the ad looks like: STANDARD_UPDATE (single image) | SPONSORED_UPDATE_NATIVE_DOCUMENT (document ad) | SPONSORED_UPDATE_NATIVE_CAROUSEL | SINGLE_VIDEO | SPOTLIGHT | FOLLOW_COMPANY | JOBS | SPONSORED_UPDATE_EVENT | TEXT_AD | SPONSORED_INMAIL | SPONSORED_MESSAGE. Leave it empty and LinkedIn falls back to a single-image ad set, which can then only be corrected in the UI — and that edit wipes the targeting, so set it here. Friendly spellings are accepted (DOCUMENT, CAROUSEL, SINGLE_IMAGE, VIDEO). RUN SCHEDULE: start_date / end_date ('YYYY-MM-DD'; end date runs to the end of that day, UTC). Empty start = now. With total_budget and no end_date LinkedIn's 90-day default end applies and spend is paced over 90 days — set end_date for event or short campaigns. NOTE: the 'I certify this is not a political ad' declaration (politicalIntent=NOT_POLITICAL) is sent automatically — political ads are not supported by this tool. confirm=false = preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | DRAFT | |
| confirm | No | ||
| country | No | US | |
| end_date | No | ||
| geo_urns | No | ||
| language | No | en | |
| ad_format | No | ||
| cost_type | No | CPC | |
| unit_cost | No | ||
| account_id | Yes | ||
| start_date | No | ||
| daily_budget | No | ||
| total_budget | No | ||
| campaign_type | No | TEXT_AD | |
| objective_type | No | WEBSITE_VISIT | |
| associated_entity | No | ||
| campaign_group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||