> ## 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 an audio, video or image file to a Spotify Ads account and returns the asset once Spotify finishes processing it

Uploads an audio, video or image file to a Spotify Ads account and returns the asset once Spotify finishes processing it. Files over 20MB are uploaded in chunks automatically. Use the returned asset id in spotify\_ads\_create\_ad.

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

## Inputs

| Field           | Type                                             | Required | Default | Description                                                                                                                                                                                                                                                                                                                                            |
| --------------- | ------------------------------------------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `account`       | DynamicAccount                                   | Yes      | -       | Select the Spotify Ads account to upload the asset to.                                                                                                                                                                                                                                                                                                 |
| `media_url`     | string                                           | Yes      | -       | File to upload. Accepts a direct URL, a Google Drive share link (set to 'Anyone with the link'), or a Markifact uploaded file. Supported formats: MP3, WAV or OGG audio; MP4 or MOV video; PNG or JPG images. Files over 20MB are uploaded in chunks automatically, and the node waits for Spotify to finish processing before returning the asset id. |
| `asset_type`    | enum (`AUDIO`, `IMAGE`, `VIDEO`)                 | No       | -       | Asset type. Detected from the file extension or content type when omitted; set it only when detection fails.                                                                                                                                                                                                                                           |
| `asset_subtype` | enum (`BACKGROUND_MUSIC`, `USER_UPLOADED_AUDIO`) | No       | -       | Audio only: BACKGROUND\_MUSIC or USER\_UPLOADED\_AUDIO.                                                                                                                                                                                                                                                                                                |
| `name`          | string                                           | No       | -       | Name of the asset in Spotify, 2 to 120 characters. Defaults to the file name when omitted.                                                                                                                                                                                                                                                             |

## Output

**Type**: `Dict`

Returns the created asset including id, name, asset\_type, status and media details such as duration, dimensions and aspect ratio.

**Fields**: dynamic (depend on the inputs)
