Skip to content

Create an ad

POST /api/marketing/ads

Joins an ad set with an existing creative (creative.creative_id) and returns the ad reread. Without status it is created PAUSED. Requires the marketing:manage scope.

FieldTypeDescription
ad_account_idstringrequiredMeta ad account, with prefix. Example: "act_123".
namestringrequiredExample: "Anuncio tráfico · imagen".
adset_idstringrequiredAd set the ad belongs to. It cannot be changed afterwards.
creativeobjectrequiredCreative to show, by id: { "creative_id": "123" }.
statusACTIVE · PAUSED · DELETED · ARCHIVEDoptionalIf omitted, the ad is created PAUSED. Default: "PAUSED".
tracking_specsobject[]optionalMeta tracking specs. They are passed through as is.
StatusDescriptionSchema
201—AdDto
Terminal window
curl -X POST https://api.neike.dev/api/marketing/ads \
-H "x-neike-api-key: whk_live_…" \
-H "Content-Type: application/json" \
-d '{
"ad_account_id": "act_123",
"name": "Anuncio tráfico · imagen",
"adset_id": "string"
}'
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—