Skip to content

Edit an ad

PATCH /api/marketing/ads/{adId}

Name, status, creative and tracking_specs can be changed. adset_id is immutable: if it is sent, the response is 400. To move an ad to another ad set you must create a new one. Requires the marketing:manage scope.

FieldTypeDescription
ad_account_idstringrequiredAd account that owns the ad. Example: "act_123".
namestringoptional—
statusACTIVE · PAUSED · DELETED · ARCHIVEDoptional—
creativeAdCreativeRefDtooptional—
tracking_specsobject[]optional—
adset_idstringoptionalNOT accepted: moving an ad to another ad set is 400. Create a new one.
StatusDescriptionSchema
200—AdDto
Terminal window
curl -X PATCH https://api.neike.dev/api/marketing/ads/{adId} \
-H "x-neike-api-key: whk_live_…" \
-H "Content-Type: application/json" \
-d '{
"ad_account_id": "act_123"
}'
FieldTypeDescription
idstringrequiredExample: "120210000000000000".
namestringrequiredExample: "Anuncio tráfico · imagen".
adset_idstringoptional—
campaign_idstringoptional—
statusACTIVE · PAUSED · DELETED · ARCHIVEDoptional—
effective_statusstringoptionalStatus computed by Meta, includes the review status.
creativeAdCreativeRefDtooptional—
created_timestringoptional—
updated_timestringoptional—