DownloadAsset
Downloads document, image, or video assets from your LinkedIn organization or ad account, allowing you to retrieve creative files for reuse, reporting, or backup purposes.
Procedure Specific Information
For document assets, LinkedIn returns the data in PDF format when downloading through this procedure.
Input
| Name | Type | Required | Accepts Output Streams | Description |
| URN | String | True | False | Uniform Resource Name (URN) of the asset to download. Supported types include 'urn:li:document:', 'urn:li:image:', and 'urn:li:video:'. |
| LocalFile | String | False | False | Specifies the absolute local file path where the downloaded asset should be saved. |
| Overwrite | Boolean | False | False | If the value is 'true', an existing file at the specified LocalFile path will be overwritten during download.
デフォルト値はfalseです。 |
| FileStream | String | False | True | Specifies an OutputStream object for writing the downloaded asset data. This is useful when direct access to the local file system (via LocalFile) is not available. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | If the value is 'true', the asset was downloaded successfully; if 'false', the download failed. |
| FileData | String | Contains the downloaded asset data as a Base64-encoded string. This output is returned only when both LocalFile and FileStream parameters are not specified. |