---
title: update_ad_set
description: 'Changes the fields named of one ad set, as get_ad_set says them, and
  sends Meta only what differs: a change to who it reaches sends the whole targeting.'
sidebar:
  order: 91
---

Changes the fields named of one ad set, as get_ad_set says them, and sends Meta only what differs: a change to who it reaches sends the whole targeting. Typed inside `bash`, where `help update_ad_set` prints the same.

```text
Usage: update_ad_set ID [options]

Changes the fields named of one ad set, as get_ad_set says them, and
sends Meta only what differs: a change to who it reaches sends the
whole targeting. A budget above what the owner lets an agent spend a
day is refused; raise one only when the owner asked for that in so
many words. Its status is set_ads_status's.

Options:
  --id TEXT (required)
      The ad set's id, from list_campaigns.
  --name TEXT
      The ad set's name, which only the owner sees.
  --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
      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)
      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.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
