Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 6.55 KB

File metadata and controls

38 lines (35 loc) · 6.55 KB

# CreateCtwaAdRequest

Properties

Name Type Description Notes
account_id string Facebook or Instagram SocialAccount ID.
ad_account_id string Meta ad account ID, e.g. `act_123456789`.
name string Ad display name. Used to derive campaign / ad set names. On the multi-creative shape, each ad's Meta name gets a " #N" suffix (1-indexed) so Ads Manager shows them as a numbered batch.
headline string Single-creative shape only. Mutually exclusive with `creatives[]`. [optional]
body string Primary text shown above the image / video. Single-creative shape only. Mutually exclusive with `creatives[]`. [optional]
image_url string Image asset for single-creative shape. Mutually exclusive with `video` and with `creatives[]`. Required on the single-creative shape if `video` is not supplied. [optional]
video \Zernio\Model\CreateCtwaAdRequestVideo [optional]
creatives \Zernio\Model\CreateCtwaAdRequestCreativesInner[] Multi-creative shape: N CTWA ads under one campaign + one ad set, sharing budget and targeting. Mutually exclusive with the top-level single-creative fields (`headline` / `body` / `imageUrl` / `video`). Each entry must supply its own headline, body, and exactly one of `imageUrl` / `video`. [optional]
budget_amount float Budget amount in the ad account's currency major units (e.g. dollars for USD, not cents). Must be > 0.
budget_type string
currency string ISO 4217 currency code matching the ad account's currency (e.g. `USD`). Optional; Meta infers from the ad account when omitted. [optional]
end_date \DateTime ISO 8601 datetime. Required when `budgetType` is `lifetime`. [optional]
countries string[] ISO 3166-1 alpha-2 country codes. Defaults to `["US"]` only when no other geo (`cities`, `regions`, `zips`, `metros`, `customLocations`) is supplied. [optional]
cities \Zernio\Model\CreateCtwaAdRequestCitiesInner[] City-level geo targeting for local CTWA campaigns (e.g. 25km radius around Milan). Each entry maps to Meta's TargetingGeoLocationCity. `key` is Meta's city ID (lookupable via GET /v1/ads/targeting/search). `radius` and `distance_unit` are coupled: set both or neither. Meta enforces a minimum city radius (~17 km / 10 mi); smaller values resolve to a 0-size audience and the ad fails at launch. For a tighter catchment use customLocations (lat/lng). [optional]
regions \Zernio\Model\CreateCtwaAdRequestRegionsInner[] Region / state-level geo targeting. `key` is Meta's region ID (lookupable via GET /v1/ads/targeting/search?type=region). [optional]
zips \Zernio\Model\CreateCtwaAdRequestZipsInner[] ZIP / postal-code geo targeting. `key` is the platform's postal id resolved via /v1/ads/targeting/search. [optional]
metros \Zernio\Model\CreateCtwaAdRequestZipsInner[] DMA / metro-area geo targeting. `key` is Meta's metro id (e.g. `DMA:807`). [optional]
custom_locations \Zernio\Model\CreateStandaloneAdRequestCustomLocationsInner[] Point-radius geo (Meta `geo_locations.custom_locations`). Use for targeting a radius around a specific lat/long when no Meta city/region key fits. `distanceUnit` is required. [optional]
age_min int [optional]
age_max int [optional]
interests \Zernio\Model\CreateStandaloneAdRequestBehaviorsInner[] [optional]
audience_id string Custom audience ID to target. [optional]
placements \Zernio\Model\CreateCtwaAdRequestPlacements [optional]
advantage_audience int Meta's Advantage+ audience expansion. `0` (default) keeps targeting strict; `1` lets Meta expand beyond the supplied targeting when its delivery system finds better matches. Always sent on CREATE (Meta requires it). [optional]
objective string Defaults to `OUTCOME_ENGAGEMENT` (the broadly-supported CTWA objective). `OUTCOME_SALES` and `OUTCOME_LEADS` require additional account configuration (Dataset linked to the WABA for sales) and may be rejected by Meta if missing. [optional]
bid_strategy string Meta bid strategy applied to the shared ad set. Defaults to `LOWEST_COST_WITHOUT_CAP` (auto-bid) when omitted. `LOWEST_COST_WITH_BID_CAP` and `COST_CAP` require `bidAmount`. `LOWEST_COST_WITH_MIN_ROAS` requires `roasAverageFloor`. CTWA's `optimization_goal` is fixed to `CONVERSATIONS`, but the bid strategy is independent. [optional]
bid_amount float Whole currency units (e.g. `5` = $5.00 on a USD account). Required when `bidStrategy` is `LOWEST_COST_WITH_BID_CAP` or `COST_CAP`; rejected otherwise. [optional]
roas_average_floor float Decimal ROAS multiplier (e.g. `2.0` = 2.0× ROAS floor). Required when `bidStrategy` is `LOWEST_COST_WITH_MIN_ROAS`; rejected otherwise. Meta enforces its own upper bound server-side. [optional]
dsa_beneficiary string Legal entity that benefits from the ad. Required when targeting EU users (EU DSA, Article 26). Optional if the ad account has a default beneficiary: set it once via `PATCH /v1/ads/accounts` or in Meta Ads Manager, and Meta fills it in whenever the field is omitted. [optional]
dsa_payor string Legal entity that pays for the ad. Can differ from `dsaBeneficiary` (for example, an agency paying for a client's ads). Same rules as `dsaBeneficiary`: required for EU targeting unless the ad account has a default payor. [optional]

[Back to Model list] [Back to API list] [Back to README]