pub struct GeoTargeting {
pub regions: Option<Vec<Region>>,
pub countries: Option<Vec<Country>>,
pub metros: Option<Vec<Metro>>,
pub cities: Option<Vec<City>>,
pub exclude_countries: Option<bool>,
pub postal_codes: Option<Vec<PostalCode>>,
}Expand description
Geographical Targeting.
This type is not used in any activity, and only used as part of another schema.
Fields§
§regions: Option<Vec<Region>>Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
countries: Option<Vec<Country>>Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
metros: Option<Vec<Metro>>Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
cities: Option<Vec<City>>Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
exclude_countries: Option<bool>Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
postal_codes: Option<Vec<PostalCode>>Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
Trait Implementations§
Source§impl Clone for GeoTargeting
impl Clone for GeoTargeting
Source§fn clone(&self) -> GeoTargeting
fn clone(&self) -> GeoTargeting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeoTargeting
impl Debug for GeoTargeting
Source§impl Default for GeoTargeting
impl Default for GeoTargeting
Source§fn default() -> GeoTargeting
fn default() -> GeoTargeting
Source§impl<'de> Deserialize<'de> for GeoTargeting
impl<'de> Deserialize<'de> for GeoTargeting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for GeoTargeting
impl Serialize for GeoTargeting
impl Part for GeoTargeting
Auto Trait Implementations§
impl Freeze for GeoTargeting
impl RefUnwindSafe for GeoTargeting
impl Send for GeoTargeting
impl Sync for GeoTargeting
impl Unpin for GeoTargeting
impl UnwindSafe for GeoTargeting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more