← 返回「广告 AI 连接器」目录
来源:Meta Developer Documentation · 本地归档日期:2026-07-30 · 查看官方中文页面
说明:正文基于 Meta 提供的官方 Markdown 原文保真归档;导航标题按中文菜单整理。代码、参数名与 API 标识保留原样,便于准确检索和复制。
Ad Creatives
# Ad Creatives


This guide covers how to create and manage ad creatives with Ads CLI, including link ads, video ads, photo posts, and Dynamic Creative Optimization.

## About ad creatives

An ad creative is an independent object that can be reused across multiple ads. The workflow for Ads CLI is:

1. Create an ad creative with `meta ads creative create`
2. Reference the ad creative when creating an ad with `meta ads ad create --creative-id <CREATIVE_ID>`

Every ad creative requires a `--page-id` -- the Facebook Business Page that acts as the ad's identity. Find your Business Page IDs with:


meta ads page list
See [Find your IDs](https://developers.facebook.com/documentation/ads-commerce/ads-ai-connectors/ads-cli/tutorials-and-recipes#find-your-ids) for more information on finding any IDs needed for Ads CLI. ## Standard ad creatives ### Link ads A link ad includes an image, headline, body text, and a destination URL. This is the most common ad format.
meta ads creative create --name &quot;Summer Sale&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --image ./banner.jpg \
  --body &quot;50% off everything!&quot; \
  --title &quot;Shop Now&quot; \
  --link-url https://example.com/sale \
  --description &quot;Limited time offer&quot; \
  --call-to-action SHOP_NOW
### Video ads A video ad includes a video file, optional thumbnail image, headline, and destination URL.
meta ads creative create --name &quot;Video Promo&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --video ./promo.mp4 \
  --body &quot;Watch our new collection&quot; \
  --title &quot;New Arrivals&quot; \
  --link-url https://example.com/new
### Photo posts A photo post on your Business Page. Created when no `--link-url` is provided.
meta ads creative create --name &quot;Page Post&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --image ./photo.jpg \
  --body &quot;Check out our latest product!&quot;
### How the format is determined - `--video` provided → Video ad - `--link-url` provided (no video) → Link ad - Neither video nor link URL → Photo post ### Supported media formats **Images:** .jpg, .jpeg, .png, .gif, .bmp, .webp **Videos:** .mp4, .mov, .avi, .mkv, .wmv Ads CLI uploads media files automatically when you create or update an ad creative. ### Call-to-action types Use with the `--call-to-action` option: `APPLY_NOW`, `BOOK_TRAVEL`, `BUY_NOW`, `CONTACT_US`, `DOWNLOAD`, `GET_OFFER`, `GET_QUOTE`, `LEARN_MORE`, `NO_BUTTON`, `OPEN_LINK`, `SHOP_NOW`, `SIGN_UP`, `SUBSCRIBE`, `WATCH_MORE` ### Instagram placements To run ads on Instagram, pass an Instagram account ID:
meta ads creative create --name &quot;Insta Ad&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --instagram-actor-id &lt;INSTAGRAM_ACCOUNT_ID&gt; \
  --image ./banner.jpg \
  --body &quot;Shop our collection&quot; \
  --link-url https://example.com
## Dynamic Creative Optimization Dynamic Creative Optimization lets you provide multiple variations of images, headlines, body text, descriptions, and call-to-action buttons. Meta automatically tests combinations and optimizes delivery toward the best-performing variants. ### Requirements - `--link-url` for the destination URL - At least one `--images` or `--videos` asset - Plural flags (`--images`, `--titles`, `--bodies`) instead of the standard single-asset flags (`--image`, `--video`, `--body`, `--title`) ### Create an ad creative Use the plural flags (`--images`, `--titles`, `--bodies`, and others) and repeat each flag for additional variants:
meta ads creative create --name &quot;DCO Test&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --link-url https://example.com \
  --images ./img1.jpg --images ./img2.jpg --images ./img3.jpg \
  --titles &quot;Shop Now&quot; --titles &quot;Learn More&quot; \
  --bodies &quot;50% off everything!&quot; --bodies &quot;Free shipping today!&quot; \
  --descriptions &quot;Limited time offer&quot; --descriptions &quot;While supplies last&quot; \
  --call-to-actions SHOP_NOW --call-to-actions LEARN_MORE
### Use with videos
meta ads creative create --name &quot;Video DCO&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --link-url https://example.com \
  --videos ./vid1.mp4 --videos ./vid2.mp4 \
  --titles &quot;New Arrivals&quot; --titles &quot;Watch Now&quot; \
  --bodies &quot;Check out our new collection&quot; --bodies &quot;See what&#039;s trending&quot;
### Limits | Asset Type | Maximum | |------------|---------| | Images | 10 | | Videos | 10 | | Titles | 5 | | Bodies | 5 | | Descriptions | 5 | | Call-to-actions | 5 | ## Update ad creatives Update specific fields of an existing ad creative. Ads CLI changes only the fields you specify:
# Update text
meta ads creative update &lt;CREATIVE_ID&gt; --body &quot;New ad copy&quot; --title &quot;New Headline&quot;

# Replace the image
meta ads creative update &lt;CREATIVE_ID&gt; --image ./new-banner.jpg

# Replace the video
meta ads creative update &lt;CREATIVE_ID&gt; --video ./new-video.mp4

# Change status
meta ads creative update &lt;CREATIVE_ID&gt; --status PAUSED
Available update options: `--name`, `--body`, `--title`, `--link-url`, `--description`, `--call-to-action`, `--image`, `--video`, `--instagram-actor-id`, `--status` **Note:** The API prevents updating some fields after creation. If an update fails, create a new ad creative instead. ## Delete ad creatives **Note:** You cannot delete ad creatives that active ads use. Pause or delete the associated ads first.
meta ads creative delete &lt;CREATIVE_ID&gt;
meta ads creative delete &lt;CREATIVE_ID&gt; --force    # Skip confirmation
## Full workflow example
# 1. Find your Business Page ID
meta ads page list

# 2. Create an ad creative
meta ads creative create --name &quot;Launch Ad&quot; \
  --page-id &lt;PAGE_ID&gt; \
  --image ./launch-banner.jpg \
  --body &quot;Our new product is here!&quot; \
  --title &quot;Just Launched&quot; \
  --link-url https://example.com/launch \
  --call-to-action SHOP_NOW

# 3. Create an ad with the returned ad creative ID
meta ads ad create &lt;AD_SET_ID&gt; --name &quot;Launch Ad - US&quot; --creative-id &lt;CREATIVE_ID&gt;

# 4. Activate the ad with the returned ad ID
meta ads ad update &lt;AD_ID&gt; --status ACTIVE
在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →