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.
Field Type Description ad_account_idstring required Meta ad account, with prefix. Example: "act_123". namestring optional Example: "Creatividad tráfico". object_story_specObjectStorySpecDto required — degrees_of_freedom_specobject optional Configuration of Meta’s automatic variations. It is passed through as is.
curl -X POST https://api.neike.dev/api/marketing/creatives \
-H " x-neike-api-key: whk_live_… " \
-H " Content-Type: application/json " \
"ad_account_id": "act_123",
Field Type Description idstring required Example: "120210000000000000". namestring optional Example: "Creatividad tráfico". statusstring optional — object_story_specObjectStorySpecDto optional — object_story_idstring optional — effective_object_story_idstring optional — thumbnail_urlstring optional — image_hashstring optional — image_urlstring optional — video_idstring optional — 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 —