create_dynamic_creative
Create a dynamic creative using asset_feed_spec so Meta automatically combines images, videos, titles, bodies, and CTAs to find the best performing ad combinations.
Instructions
Create a dynamic creative with asset_feed_spec. Meta automatically combines different images, videos, titles, bodies, and CTAs to find the best performing combinations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Creative name | |
| account_id | No | Ad account ID to create the creative in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| asset_feed_spec | Yes | JSON string of asset_feed_spec with arrays: images (hash), videos (video_id), bodies (text), titles (text), descriptions (text), call_to_action_types | |
| destination_spec | No | JSON object controlling the destination; set destination_type=WEBSITE_AND_SHOP_OPT_OUT to opt out of the v26 Shops default | |
| object_story_spec | No | JSON object containing the associated page_id and optional instagram_user_id | |
| degrees_of_freedom_spec | No | JSON object for Advantage+ creative controls, including creative_features_spec.image_animation, video_filtering, and video_uncrop | |
| wamo_whatsapp_identity_spec | No | JSON object with wamo_whatsapp_identity_id or whatsapp_phone_number for WhatsApp Status ads; sent at the creative's top level |