CData Python Connector for LinkedIn Marketing Solutions

Build 25.0.9454

UploadImage

Uploads image assets to your LinkedIn organization or ad account for use in posts, sponsored ads, or creative libraries, ensuring consistent visual branding.

Procedure Specific Information

To use this stored procedure, exactly one of the following parameters must be specified (in addition to OwnerURN):

  • 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:

  1. Only images with a total pixel count (width X height) less than 36,152,320 are allowed.
  2. The following formats are supported: JPG, PNG, and GIF.
  3. For the GIF format, up to 250 frames can be used.

Input

Name Type Required Description
AccountURN String True Uniform Resource Name (URN) that identifies the advertising account whose media library will store the uploaded image asset.
AssetName String True Specifies the name under which the image will be saved in the account's media library.
OwnerURN String False URN that identifies the organization or advertising account that will own the uploaded image. If not provided, the account defined in the AccountURN parameter will be set as the owner.
LocalFile String False Specifies the absolute local file path of the image to upload to LinkedIn.
FileData String False Contains the image data as a Base64-encoded string, used when neither LocalFile nor FileStream parameters can be provided.

Result Set Columns

Name Type Description
ImageURN String URN that uniquely identifies the newly created image asset after a successful upload.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454