Create an ad set under one of the store's Meta campaigns (Meta id or Magistry id), paused and read back; it spends nothi
Changed onCreate an ad set under one of the store's Meta campaigns (Meta id or Magistry id), paused and read back; it spends nothing until it and its campaign are resumed. Targeting: countries, age, gender, Custom Audiences to include or exclude, Advantage+ audience, or a full targeting_spec. optimization_goal defaults to purchases on the pixel for a Sales campaign, else link clicks. daily_budget (ad account currency) is the ad set's own budget: required when the campaign carries no budget, refused when the campaign holds it. Refused before any write when the campaign is not on this store's ad account.
Request
- Base URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopesads:write
Headers
Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.
Request body
The campaign: Meta id or Magistry id.
The ad set's own daily budget, ad account currency.
Bid cap, ad account currency (bid-cap strategies only).
ISO 3166 alpha-2. Required unless targeting_spec is given.
Default all.
Meta Custom Audience ids to include.
Meta Custom Audience ids to exclude.
Let Meta reach past this targeting (Advantage+ audience). Default true.
A full Meta targeting spec (must carry geo_locations); wins over the fields above. A targeting change answers the ad set's previous spec as before in this shape.
Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.
Response
Tool result
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning