Skip to main content
PUT
Update an ad set

Request contract

  • Method and path: PUT /apis/v1/ads/ad-sets/{adSetId}
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/ad-sets/{adSetId}
  • adSetId: path; required
  • connectionId: query; required
  • X-Aisa-Confirm: header; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation. Ad spend is billed separately by the ad platform to your connected ad account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Aisa-Confirm
enum<string>

Required with the value "spend" when the request can spend money or change spend. Without it the request is refused with 409 confirmation_required, which describes what would happen; nothing is sent to the ad platform.

Available options:
spend

Path Parameters

adSetId
string
required

Platform ad set ID

Query Parameters

connectionId
string
required

The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^adc_[0-9A-Za-z]+$

Body

application/json
bidAmount
number

Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when bidStrategy is LOWEST_COST_WITH_BID_CAP or COST_CAP.

bidStrategy
enum<string>

Ad-set-level bid strategy. Overrides the campaign-level default. Meta (facebook, instagram): supported. TikTok: the Meta-style enum is mapped to bid_type / bid_price / deep_bid_type automatically.

Available options:
LOWEST_COST_WITHOUT_CAP,
LOWEST_COST_WITH_BID_CAP,
COST_CAP,
LOWEST_COST_WITH_MIN_ROAS
budget
object

Omit if not updating budget

connectionId
string

The ads connection (adc_...), when not sent as the connectionId query parameter.

Pattern: ^adc_[0-9A-Za-z]+$
dsaBeneficiary
string

Meta only (400 elsewhere, before anything in the request is written). Writes the ad set's dsa_beneficiary, the legal entity that benefits from its ads. Same field and limits as dsaBeneficiary on POST /apis/v1/ads/create.

Required string length: 1 - 100
dsaPayor
string

Meta only (400 elsewhere, before anything in the request is written). Writes the ad set's dsa_payor, the legal entity that pays for its ads, same field and limits as dsaPayor on POST /apis/v1/ads/create.

Required string length: 1 - 100
endDate
string | null

Reddit only. The ad group's new end_time, ISO 8601, read in the ad account timezone when it has no offset; a date alone means the end of that day. null removes the end date so the ad group runs continuously.

name
string

Rename the ad set. At least one of budget/status/bidStrategy/name is required. Supported on Meta, Google (the ad group), TikTok, LinkedIn (the campaign), Pinterest, X (the line item name), OpenAI and Reddit.

Maximum string length: 255
placements
object | null

Meta only (400 elsewhere). Manual placements, with the same object and enums as placements on POST /apis/v1/ads/create.

platform
enum<string>

Filled from the connection when omitted.

Available options:
facebook,
instagram,
tiktok,
linkedin,
pinterest,
google,
twitter,
openai,
reddit,
meta,
x
platformSpecificData
object

Platform-specific post-launch delivery settings. The platform is implied by the platform body param. Meta only; other platforms return 400. Unknown keys are rejected.

regionalRegulatedCategories
string[]

Meta only (400 elsewhere, before anything in the request is written).

Minimum string length: 1
regionalRegulationIdentities
object

Meta only (400 elsewhere, before anything in the request is written). Writes the ad set's regional_regulation_identities: the Verified identity IDs of the beneficiary and payer for each declared category.

roasAverageFloor
number

Minimum ROAS as a decimal multiplier (2.0 = 2.0x). Required when bidStrategy is LOWEST_COST_WITH_MIN_ROAS. Sent to Meta as bid_constraints.roas_average_floor × 10000. Not supported on OpenAI (422).

smartTargeting
object

TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: audience is TikTok's smart_audience_enabled, interestsBehaviors its smart_interest_behavior_enabled.

startDate
string

Reddit only: the ad group's new start_time, ISO 8601. A value without an offset (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS) is read in the ad account timezone.

status
enum<string>

Writes the ad set's own on/off switch (Meta: configured_status; X: the line item's entity_status ACTIVE / PAUSED), whatever delivery status its ads report. Omit if not toggling delivery state.

Available options:
active,
paused
targeting
object

Targeting fields to change. Meta and Reddit (400 elsewhere). Reddit (see the description above):

valueRuleSetId
string

Meta only (other platforms return 501). Value rule set to attach to this ad set, from /apis/v1/ads/value-rule-sets. Sending a different id replaces the current association. To DETACH, send valueRulesApplied: false and omit this field.

Pattern: ^\d+$
valueRulesApplied
boolean

Meta only (other platforms return 501). false DETACHES the ad set's value rule set and must be sent WITHOUT valueRuleSetId; the combination returns 400.

Response

Ad set updated

bidAmount
number | null
bidStrategy
enum<string>

Meta bid strategy. Same enum applies at campaign and ad-set level; ad-set value (when set) overrides campaign-level. Cross-field rules: LOWEST_COST_WITHOUT_CAP (default): auto-bid, forbids bidAmount and roasAverageFloor.

Available options:
LOWEST_COST_WITHOUT_CAP,
LOWEST_COST_WITH_BID_CAP,
COST_CAP,
LOWEST_COST_WITH_MIN_ROAS
budget
object

Budget amount in the ad account's native currency (see the campaign's currency field for the code).

budgetLevel
enum<string>
Available options:
adset
endDate
string | null

Reddit: the end_time written, a UTC instant, or null when the end date was removed. Present when endDate was sent.

platformAdSetStatus
string | null

The ad set's status read back from the platform, as in PUT /apis/v1/ads/ad-sets/{adSetId}/status (Meta and Reddit return the ad set's effective_status); null when it could not be read.

platformCampaignStatus
string | null
platformSpecificData
object
roasAverageFloor
number | null
startDate
string

Reddit: the start_time written, a UTC instant. Present when startDate was sent.

status
enum<string>

As in PUT /apis/v1/ads/ad-sets/{adSetId}/status: delivery derived from the switches read back.

Available options:
active,
paused
statusReadAt
string<date-time> | null
statusSkipped
enum<integer>

1 when a live read showed it already in the requested state.

Available options:
0,
1
statusSkippedReasons
string[]
statusUpdated
enum<integer>

1 when the ad set's switch was written.

Available options:
0,
1
targeting
object

Present when placements or targeting was sent. The ad set's full targeting as written, in the platform's own vocabulary (Meta or Reddit snake_case). Stored as the ad set's targeting. Meta stores the same object on its ads.