structured_data | array (also accepts a comma-separated string) | Yes | - | Structured data containing carousel ad information. Each row represents one carousel ad with multiple cards (2-10 cards per ad). Required columns: adset_id, ad_name, ad_status, primary_text, website_url, card_1_media_url, card_1_headline, card_2_media_url, card_2_headline. Optional columns: card_N_description (if empty, Meta may show the landing page’s meta description), card_N_website_url, card_N_call_to_action, card_N_story_media_url (for placement optimization), form_id (for lead form ads), disable_creative_enhancements (set to True to disable Meta’s automatic creative optimizations), disable_multi_advertiser_ads (set to True to opt out of showing your ad alongside other ads), is_ai_generated (True or False: ticks Ads Manager’s ‘Ad includes media created or edited with AI’ (the creative’s AI self-disclosure); false opts out, empty leaves Meta’s default. Set when the creative is created; existing ads cannot be changed; True also flags the row’s uploaded videos), pixel_id (optional, leave empty to inherit from ad set and account), product_set_id (optional, a catalog product set id from meta_ads_list_product_sets to show its products below the ad; needs a Sales or Traffic campaign), ad_start_time (schedule ad start, format: YYYY-MM-DD HH:MM or YYYY-MM-DD, in the ad account’s timezone), ad_end_time (schedule ad end, format: YYYY-MM-DD HH:MM or YYYY-MM-DD, in the ad account’s timezone). IMPORTANT: For additional cards (3-10), if ANY field is provided for a card, then both card_N_media_url AND card_N_headline become required. No incomplete card data allowed. Video thumbnails are auto-generated. Note: user can provide direct media URLs or Google Drive share links; Markifact will convert Drive links to direct URLs automatically, the only requirement is that the file sharing is set to ‘Anyone with the link’. |
creative_only | boolean | No | False | Set to true to create only the Meta ad creative without creating an ad. Useful when editing an existing ad: create a new creative with the updated carousel cards, media, text, or URLs, then attach it using replace_ad_creative. When true, adset_id is not required since you’re not creating a new ad, just an ad creative. Returns creative IDs instead of ad IDs. Default is false. |