upload_image
Uploads an image file to LinkedIn for use in ads. Supports PNG, JPG, and GIF, and returns the image URN to use as the mediaId when creating inline ads.
Instructions
Uploads an image file to LinkedIn for use in ads. Supports PNG, JPG, and GIF formats. Returns the image URN that can be used as the mediaId when creating inline ads. The image is uploaded in two steps: initialize upload (get URL + URN), then upload binary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the image file on the local filesystem | |
| accountId | No | Optional: LinkedIn Ad Account ID to register the image in the account media library | |
| assetName | No | Optional: Name for the asset in the media library (required if accountId is provided) | |
| organizationId | Yes | Owner of the image. Can be an organization URN (urn:li:organization:123) or a sponsored account URN (urn:li:sponsoredAccount:123). Use sponsoredAccount if you only have rw_ads permissions. |