Skip to content

Create a creative

POST /api/marketing/creatives

The object_story_spec carries the page that publishes and exactly one of link_data or video_data: sending both, or neither, is 400. The image is referenced by the hash from POST /api/marketing/images and the video by the id from POST /api/marketing/videos. Requires the marketing:manage scope.

FieldTypeDescription
ad_account_idstringrequiredMeta ad account, with prefix. Example: "act_123".
namestringoptionalExample: "Creatividad tráfico".
object_story_specObjectStorySpecDtorequired—
degrees_of_freedom_specobjectoptionalConfiguration of Meta’s automatic variations. It is passed through as is.
StatusDescriptionSchema
201—CreativeDto
Terminal window
curl -X POST https://api.neike.dev/api/marketing/creatives \
-H "x-neike-api-key: whk_live_…" \
-H "Content-Type: application/json" \
-d '{
"ad_account_id": "act_123",
"object_story_spec": {
"page_id": "string"
}
}'
FieldTypeDescription
idstringrequiredExample: "120210000000000000".
namestringoptionalExample: "Creatividad tráfico".
statusstringoptional—
object_story_specObjectStorySpecDtooptional—
object_story_idstringoptional—
effective_object_story_idstringoptional—
thumbnail_urlstringoptional—
image_hashstringoptional—
image_urlstringoptional—
video_idstringoptional—
call_to_action_typeLEARN_MORE · SHOP_NOW · SIGN_UP · BOOK_TRAVEL · DOWNLOAD · GET_QUOTE · CONTACT_US · SUBSCRIBE · APPLY_NOW · GET_OFFER · MESSAGE_PAGE · WHATSAPP_MESSAGE · CALL_NOW · DONATE_NOW · SEE_MENU · ORDER_NOW · PLAY_GAME · INSTALL_MOBILE_APP · NO_BUTTONoptional—