Struct google_api_proto::google::ads::googleads::v15::common::LocationGroupInfo
source · pub struct LocationGroupInfo {
pub feed: Option<String>,
pub geo_target_constants: Vec<String>,
pub radius: Option<i64>,
pub radius_units: i32,
pub feed_item_sets: Vec<String>,
pub enable_customer_level_location_asset_set: Option<bool>,
pub location_group_asset_sets: Vec<String>,
}
Expand description
A radius around a list of locations specified through a feed or assetSet.
Fields§
§feed: Option<String>
Feed specifying locations for targeting. Cannot be set with AssetSet fields. This is required and must be set in CREATE operations.
geo_target_constants: Vec<String>
Geo target constant(s) restricting the scope of the geographic area within the feed. Currently only one geo target constant is allowed. Cannot be set with AssetSet fields.
radius: Option<i64>
Distance in units specifying the radius around targeted locations. This is required and must be set in CREATE operations.
radius_units: i32
Unit of the radius. Miles and meters are supported for geo target constants. Milli miles and meters are supported for feed item sets and asset sets. This is required and must be set in CREATE operations.
feed_item_sets: Vec<String>
FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, then all items that appear in at least one set are targeted. This field cannot be used with geo_target_constants. This is optional and can only be set in CREATE operations. Cannot be set with AssetSet fields.
enable_customer_level_location_asset_set: Option<bool>
Denotes that the latest customer level asset set is used for targeting. Used with radius and radius_units. Cannot be used with feed, geo target constants or feed item sets. When using asset sets, either this field or location_group_asset_sets should be specified. Both cannot be used at the same time. This can only be set in CREATE operations.
location_group_asset_sets: Vec<String>
AssetSets whose Assets are targeted. If multiple IDs are specified, then all items that appear in at least one set are targeted. This field cannot be used with feed, geo target constants or feed item sets. When using asset sets, either this field or enable_customer_level_location_asset_set should be specified. Both cannot be used at the same time. This can only be set in CREATE operations.
Implementations§
source§impl LocationGroupInfo
impl LocationGroupInfo
sourcepub fn radius_units(&self) -> LocationGroupRadiusUnits
pub fn radius_units(&self) -> LocationGroupRadiusUnits
Returns the enum value of radius_units
, or the default if the field is set to an invalid enum value.
sourcepub fn set_radius_units(&mut self, value: LocationGroupRadiusUnits)
pub fn set_radius_units(&mut self, value: LocationGroupRadiusUnits)
Sets radius_units
to the provided enum value.
sourcepub fn radius(&self) -> i64
pub fn radius(&self) -> i64
Returns the value of radius
, or the default value if radius
is unset.
sourcepub fn enable_customer_level_location_asset_set(&self) -> bool
pub fn enable_customer_level_location_asset_set(&self) -> bool
Returns the value of enable_customer_level_location_asset_set
, or the default value if enable_customer_level_location_asset_set
is unset.
Trait Implementations§
source§impl Clone for LocationGroupInfo
impl Clone for LocationGroupInfo
source§fn clone(&self) -> LocationGroupInfo
fn clone(&self) -> LocationGroupInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationGroupInfo
impl Debug for LocationGroupInfo
source§impl Default for LocationGroupInfo
impl Default for LocationGroupInfo
source§impl Message for LocationGroupInfo
impl Message for LocationGroupInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LocationGroupInfo
impl PartialEq for LocationGroupInfo
source§fn eq(&self, other: &LocationGroupInfo) -> bool
fn eq(&self, other: &LocationGroupInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocationGroupInfo
Auto Trait Implementations§
impl Freeze for LocationGroupInfo
impl RefUnwindSafe for LocationGroupInfo
impl Send for LocationGroupInfo
impl Sync for LocationGroupInfo
impl Unpin for LocationGroupInfo
impl UnwindSafe for LocationGroupInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request