create_ad
Create a new ad campaign element by specifying required details. Provide a name, target adset ID, and the creative specification to publish your new ad.
Instructions
Create a new ad. Requires name, adset_id, and creative (JSON object_story_spec). Defaults to PAUSED status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Ad name | |
| status | No | Ad status (default PAUSED) | PAUSED |
| adset_id | Yes | Parent ad set ID | |
| creative | Yes | JSON string of creative spec (object_story_spec with page_id, link_data/photo_data/video_data). Note: as of v26.0, a creative with applink_treatment=web_only can no longer be attached to an ad in a campaign using Website and App conversion locations — use automatic destination selection or a compatible manual destination instead. | |
| account_id | No | Ad account ID to create the ad in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| tracking_specs | No | JSON string of tracking specs array |