create_inline_ad
Create LinkedIn sponsored content ads directly with inline text, media, landing page, and CTA in one call. No pre-existing post required.
Instructions
Creates a new LinkedIn ad with inline content directly (without needing a pre-existing post). This creates the ad content (text, image/video, landing page, CTA) and the creative in a single call. Use this to create sponsored content ads from scratch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the creative (for internal reference in Campaign Manager) | |
| mediaId | No | URN of the image or video to use (e.g., urn:li:image:C5510AQE... or urn:li:video:C5510AQE...). Upload media first via LinkedIn's media upload APIs. | |
| accountId | Yes | The LinkedIn Ad Account ID | |
| campaignId | Yes | Campaign ID to create the ad under (numeric ID or full URN) | |
| commentary | Yes | The ad text/copy that appears as the post commentary | |
| mediaTitle | No | Title for the media (displayed as headline for videos) | |
| leadgenFormId | No | Lead gen form ID (required for LEAD_GENERATION objective campaigns) | |
| intendedStatus | No | Initial status. Default: DRAFT | |
| landingPageUrl | No | Landing page URL for the ad. Required for WEBSITE_VISIT and WEBSITE_CONVERSIONS campaign objectives. | |
| organizationId | Yes | Organization/company ID that will be the ad author (numeric ID or full URN like urn:li:organization:123) | |
| callToActionLabel | No | Call to action button label | |
| leadgenCallToActionLabel | No | Call to action label for lead gen form button |