> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Media

> Uploads a single image, video, or document to LinkedIn and returns its asset URN (urn:li:image / urn:li:video / urn:li:document), owned by the given Company Page

Uploads a single image, video, or document to LinkedIn and returns its asset URN (urn:li:image / urn:li:video / urn:li:document), owned by the given Company Page. Use this to get a media URN to embed in a raw creative payload for linkedin\_ads\_create\_ad. For creating a full ad with new media, prefer the dedicated create operations, which upload internally.

|                       |                             |
| --------------------- | --------------------------- |
| **App**               | LinkedIn Ads                |
| **Operation ID**      | `linkedin_ads_upload_media` |
| **Type**              | Action                      |
| **Connection**        | `linkedin_ads` (required)   |
| **Credits per run**   | 1                           |
| **Agent / MCP tool**  | Yes                         |
| **Requires approval** | Yes (write operation)       |

## Inputs

| Field          | Type                 | Required | Default | Description                                                                                                                                                                                                                                                          |
| -------------- | -------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `organization` | string or SelectItem | Yes      | -       | Company Page that owns the uploaded asset (the same organization used as the post author). Accepts an organization id or urn:li:organization:123.                                                                                                                    |
| `image_url`    | string               | No       | -       | Image to upload. Accepts a direct image URL or a Google Drive share link (set to 'Anyone with the link'). Returns an urn:li:image URN. Provide exactly one of image\_url, video\_url, or document\_url.                                                              |
| `video_url`    | string               | No       | -       | Video to upload. Accepts a direct video URL or a Google Drive share link (set to 'Anyone with the link'). Returns an urn:li:video URN. Waits for LinkedIn to finish processing. Provide exactly one of image\_url, video\_url, or document\_url.                     |
| `document_url` | string               | No       | -       | Document to upload: PDF, PPT, PPTX, DOC, or DOCX up to 100MB and 300 pages. Accepts a direct file URL or a Google Drive share link (set to 'Anyone with the link'). Returns an urn:li:document URN. Provide exactly one of image\_url, video\_url, or document\_url. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the uploaded asset's URN, its type (image/video/document), and the owning organization URN.

**Fields**: `media_urn`, `media_type`, `organization`
