create_ad_creative
Create a single-text ad creative for Facebook or Instagram by providing a page ID and either video data or link data with image hash, URL, and message. Supports Instagram placements via optional user ID.
Instructions
WRITE: Create a single-text ad creative from an object_story_spec. Pass page_id plus ONE of: video_data (for video ads — needs video_id from upload_video), link_data (for image / link ads — needs image_hash from upload_image + link + message). If the Page is not linked to Instagram, pass instagram_user_id from get_pbia() to enable IG placements.
Note: image hashes are per-ad-account in Meta — a hash uploaded on account A is NOT valid on account B. Re-upload to each target account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_account_id | Yes | 'act_123' or '123' | |
| name | Yes | ||
| page_id | Yes | Facebook Page ID (the advertiser) | |
| instagram_user_id | No | Instagram actor ID or PBIA id (from get_pbia). Optional. | |
| video_id | No | From upload_video | |
| image_hash | No | From upload_image | |
| message | No | Primary text / body copy | |
| title | No | Headline for link_data | |
| link | No | Landing page URL (for link_data) | |
| call_to_action | No | e.g. {type: 'SHOP_NOW', value: {link: 'https://...'}} | |
| description | No | ||
| url_tags | No | UTM tracking params | |
| thumbnail_url | No |