Update Ad
Update an ad.
All fields are optional on update. If you include creative, send its required
type, title, and body fields. A single-image creative also needs its
image and destination fields. status accepts active, paused, or archived.
For an ad with multiple images, omitting creative.file_ids preserves the
images; an explicit array replaces them. Omitting creative.target_url
preserves the saved destination; an explicit value applies to every image.
Don't send a singular creative.file_id for an ad with multiple images.
To switch an existing single-image ad to multiple images, send type=chat_card,
4–6 distinct square-image file_ids, and a target_url, along with title
and body. The account, campaign, and ad group must support multiple images.
Update Ad
curl https://api.ads.openai.com/v1/ads/$AD_ID \
-X POST \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY"{
"id": "id",
"created_at": 0,
"creative": {
"body": "body",
"target_url": "target_url",
"title": "title",
"type": "chat_card",
"file_id": "file_id",
"image_crop": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"image_url": "image_url",
"images": [
{
"file_id": "file_id",
"image_url": "image_url",
"item_id": "item_id"
}
],
"price": "price"
},
"name": "name",
"review": {
"status": "in_review",
"reason": "crawl_failed",
"screenshot_url": "screenshot_url"
},
"review_status": "in_review",
"status": "status",
"updated_at": 0,
"advertiser_phone_verification_required": true,
"appeal": {
"requested_at": 0,
"resolved_at": 0,
"status": "requested",
"advertiser_statement": "advertiser_statement"
},
"geographic_targeting_blocked": true,
"landing_page_configuration": {
"query_string_template": "query_string_template"
},
"serving_issues": [
{
"code": "ad_account_suspended",
"can_resolve_by_changing_countries": true
}
]
}Body ParametersJSON
Returns Examples
{
"id": "id",
"created_at": 0,
"creative": {
"body": "body",
"target_url": "target_url",
"title": "title",
"type": "chat_card",
"file_id": "file_id",
"image_crop": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"image_url": "image_url",
"images": [
{
"file_id": "file_id",
"image_url": "image_url",
"item_id": "item_id"
}
],
"price": "price"
},
"name": "name",
"review": {
"status": "in_review",
"reason": "crawl_failed",
"screenshot_url": "screenshot_url"
},
"review_status": "in_review",
"status": "status",
"updated_at": 0,
"advertiser_phone_verification_required": true,
"appeal": {
"requested_at": 0,
"resolved_at": 0,
"status": "requested",
"advertiser_statement": "advertiser_statement"
},
"geographic_targeting_blocked": true,
"landing_page_configuration": {
"query_string_template": "query_string_template"
},
"serving_issues": [
{
"code": "ad_account_suspended",
"can_resolve_by_changing_countries": true
}
]
}