create_ad_set
Makes an ad set in one of the site’s campaigns, paused: who it reaches, where it shows, its budget and its schedule. Typed inside bash, where help create_ad_set prints the same.
Usage: create_ad_set NAME CAMPAIGN_ID BUDGET LOCATIONS [options]
Makes an ad set in one of the site's campaigns, paused: who itreaches, where it shows, its budget and its schedule. A `status`other than PAUSED is refused, and so is a budget above what theowner lets an agent spend a day. A place in the EU needs who paysand who benefits. Read the `meta-ads` guide.
Options: --name TEXT (required) The ad set's name, which only the owner sees. --campaign_id TEXT (required) The campaign it runs in, from list_campaigns. --destination_type WEBSITE|MESSENGER|WHATSAPP|INSTAGRAM_DIRECT|PHONE_CALL|ON_POST|ON_PAGE|ON_VIDEO|ON_EVENT|ON_AD|SHOP_AUTOMATIC Where its ads send people, as the campaign's objective allows (topic ads). Defaults to the objective's first. --optimization_goal REACH|IMPRESSIONS|AD_RECALL_LIFT|THRUPLAY|LINK_CLICKS|LANDING_PAGE_VIEWS|POST_ENGAGEMENT|PAGE_LIKES|EVENT_RESPONSES|CONVERSATIONS|QUALITY_CALL|LEAD_GENERATION|QUALITY_LEAD|OFFSITE_CONVERSIONS|VALUE What Meta shows its ads to get more of, as the objective and the destination allow (topic ads). Defaults to their first. --billing_event IMPRESSIONS|THRUPLAY|LINK_CLICKS What Meta charges for. Defaults to IMPRESSIONS. --bid_strategy LOWEST_COST_WITHOUT_CAP|LOWEST_COST_WITH_BID_CAP|COST_CAP|LOWEST_COST_WITH_MIN_ROAS How Meta bids (topic ads). --bid_amount TEXT The bid cap or cost goal a bid strategy needs, in the account's currency. --budget_kind daily|lifetime daily, or lifetime spread over its run, which needs end_time. --budget TEXT (required) In the ad account's currency, as a person types it: "20" or "20.50". --start_time TEXT In the ad account's time zone: 2026-11-10T09:00. --end_time TEXT When it stops, the same way. --locations JSON ... (give the flag again for each) (required) The places it reaches, each as search_ad_locations answers it: { "type": "city", "key": "2384435", "name": "Kyiv", "country_code": "UA", "radius": 17 }. --age_min N 13 to 65. Defaults to 18. --age_max N 13 to 65, which Meta reads as and older. --genders all|1|2 all, 1 for men or 2 for women. --placements_kind advantage|manual advantage leaves where its ads show to Meta; manual names them in placements. --placements JSON With manual, each platform and its positions (topic ads): { "facebook": ["feed"], "instagram": [] }, an empty list being every position of it. --advantage_audience (a flag) Whether Meta may reach past the ages named. Defaults to true. --pixel_id TEXT The site's Meta Pixel, which an objective counting actions on the site needs. Defaults to the one the site has. --custom_event_type PURCHASE|LEAD|COMPLETE_REGISTRATION|CONTACT|SCHEDULE|SUBMIT_APPLICATION|SUBSCRIBE|ADD_TO_CART|INITIATE_CHECKOUT|CONTENT_VIEW The pixel event it optimises for. Defaults to PURCHASE. --dsa_payor TEXT Who pays for the ads, needed where a place is in the EU. Defaults to what the ad account says. --dsa_beneficiary TEXT Who the ads are for, needed where a place is in the EU, the same way. --status TEXT Leave it out. Everything is made PAUSED and any other status is refused; set_ads_status switches it on. --json OBJECT Every argument at once, as one JSON object; --json - reads it from stdin.