Upload Creative
adsap_upload_creativeUpload image/video from Google Drive or Dropbox to a Meta ad account. Provide exactly one of drive_file_id / dropbox_path. Set pair:true on each file of a suffix-named square/vertical set to auto-group them. Videos are async — check with adsap_get_upload_status when complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Defaults to the source filename | |
| pair | No | Set true on EACH file of a square/vertical (+optional landscape) set whose filenames share a base name with matching suffixes (e.g. promo_feed.jpg + promo_story.jpg) to auto-group them for multi-placement ads. Pairing happens server-side when the partner file lands, in any order. | |
| type | No | Auto-detected if omitted | |
| labels | No | ADSAP-only tags, not in Meta | |
| dropbox_path | No | From adsap_list_dropbox_files (its dropbox_path field, e.g. '/creatives/ad.jpg'). Provide exactly one of drive_file_id / dropbox_path. | |
| ad_account_id | Yes | ||
| drive_file_id | No | From adsap_list_drive_files. Provide exactly one of drive_file_id / dropbox_path. | |
| idempotency_key | No |