UploadImage
Upload image assets in your LinkedIn organization/ad-account which can be used to create posts and ads.
Procedure Specific Information
To use this stored procedure, exactly one of the following parameters must be specified (besides the ones reported in the table below as Required):- LocalFile
- FileStream
- FileData
If no parameter is used, or more than one parameter is used, the procedure will fail.
Below are some other restrictions for image assets:
- Only images with a total pixel count (width X height) less than 36,152,320 are allowed.
- The following formats are supported: JPG, PNG, and GIF.
- For the GIF format, up to 250 frames can be used.
Input
| Name | Type | Required | Description |
| AccountURN | String | True | The URN of the ad-account whose media library will contain the new image asset. |
| AssetName | String | True | The name to use for saving this image as an asset in the ad-account's media library. |
| OwnerURN | String | False | The URN of the organization or ad-account to use as the new image's owner. If not specified, the account specified in the 'AccountURN' parameter will be configured as the owner. |
| LocalFile | String | False | The absolute path of the image file in your system to upload to LinkedIn. |
| FileData | String | False | A Base64-encoded string containing the data of the image to upload to LinkedIn. Useful in cases when neither the 'LocalFile' parameter nor the 'FileStream' parameter are viable options. |
Result Set Columns
| Name | Type | Description |
| ImageURN | String | The URN of the new image asset that was created, if the upload was successful. |