Upload Ad Asset
newsbreak_upload_assetUpload image, video, or GIF to NewsBreak CDN and get a CDN URL for use in ads. Optionally save to media library for reuse.
Instructions
Upload an image, video, or GIF asset to NewsBreak CDN.
The returned assetUrl can then be used when creating ads.
Args:
assetPath (string, required): Local file path of the asset
adAccountId (string, required): ID of the ad account
saveToMediaLibrary (boolean, optional): Save to Media Library for reuse
mediaName (string, optional): Name for the media (required if saveToMediaLibrary=true)
Returns:
assetUrl: CDN URL to use in ads
mediaId: Media library ID (if saved)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetPath | Yes | Local file path of the asset to upload | |
| mediaName | No | Media name (3-256 chars, required if saveToMediaLibrary=true) | |
| adAccountId | Yes | ID of the ad account | |
| saveToMediaLibrary | No | Save to account's Media Library |