Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 3.54 KB

File metadata and controls

30 lines (25 loc) · 3.54 KB

TargetingSpec

Properties

Name Type Description Notes
countries Option<Vec> ISO 3166-1 alpha-2 country codes (e.g. ['US']). [optional]
regions Option<Vecmodels::CreateStandaloneAdRequestZipsInner> Region/state targeting. key is the platform location ID from /v1/ads/targeting/search?dimension=geo&geoType=region. [optional]
cities Option<Vecmodels::TargetingSpecCitiesInner> City targeting. Optional radius + distance_unit extend beyond the city limits; both must be set together or both omitted. radius is only honoured on platforms whose capability map allows city radius (Meta). [optional]
zips Option<Vecmodels::CreateStandaloneAdRequestZipsInner> Postal/ZIP targeting. key is the platform's postal location ID (e.g. Meta US:94304). Supported on Meta, Google, TikTok, Pinterest, X. [optional]
metros Option<Vecmodels::CreateStandaloneAdRequestZipsInner> DMA / metro-area targeting. key is the platform's metro ID (e.g. Meta DMA:807). [optional]
custom_locations Option<Vecmodels::TargetingSpecCustomLocationsInner> Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured only where the capability map allows radius (Meta). [optional]
excluded_locations Option<models::TargetingSpecExcludedLocations> [optional]
age_min Option<i32> [optional]
age_max Option<i32> [optional]
gender Option<Gender> Restrict by gender. 'all' (default) targets everyone. (enum: all, male, female) [optional]
income_tier Option<IncomeTier> Normalized household-income tier (ZIP/percentile based). Meta and TikTok express all four. Google maps only top_10 (its INCOME_RANGE_90_UP); other tiers on Google, and any income tier on LinkedIn / X / Pinterest, are rejected. On Meta, income/zip targeting requires the relevant specialAdCategories to be unset (housing/employment/credit ads cannot use it). (enum: top_5, top_10, top_10_25, top_25_50) [optional]
languages Option<Vec> Language codes (e.g. ['en']). [optional]
interests Option<Vecmodels::CreateStandaloneAdRequestBehaviorsInner> Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. [optional]
behaviors Option<Vecmodels::CreateStandaloneAdRequestBehaviorsInner> Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta and TikTok. [optional]
industries Option<Vec> LinkedIn B2B only. Industry URN id fragments. [optional]
company_sizes Option<Vec> LinkedIn B2B only. [optional]
seniorities Option<Vec> LinkedIn B2B only. [optional]
job_functions Option<Vec> LinkedIn B2B only. [optional]
audience_include Option<Vec> Platform audience IDs to include. [optional]
audience_exclude Option<Vec> Platform audience IDs to exclude. [optional]

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