Upload an asset to a Meta ad account
upload_meta_assetUpload finished ads or user files to a Meta ad account's asset library for use in ad campaigns. Supports single or bulk uploads via URLs.
Instructions
Upload creative(s) — a finished Hermoso ad OR arbitrary user files (e.g. a folder of media from the user’s desktop) — into a connected ad account’s ASSET LIBRARY so the user or a later ad-build step can use them in their OWN campaigns. Pass url for one file, or urls (up to 20) to BULK-upload in a single call. Each accepts a public https URL, a data: URI, or a Hermoso /generated path; for LOCAL files call upload_file first and pass the url(s) it returns. Image → image hash; video → video id. Pass adAccountId from list_meta_pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | a single public https URL / data: URI / /generated path | |
| kind | No | inferred from the URL if omitted | |
| name | No | a label for the asset | |
| urls | No | up to 20 media URLs/paths for a one-call BULK upload | |
| adAccountId | Yes | ad account id (digits or act_… — from list_meta_pages) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| hash | No | ||
| kind | No | ||
| assets | No | ||
| videoId | No |