Struct googapis::google::ads::googleads::v9::services::PlannableLocation [−][src]
pub struct PlannableLocation {
pub id: Option<String>,
pub name: Option<String>,
pub parent_country_id: Option<i64>,
pub country_code: Option<String>,
pub location_type: Option<String>,
}
Expand description
A plannable location: a country, a DMA, a metro region, a tv region, a province.
Fields
id: Option<String>
The location identifier.
name: Option<String>
The unique location name in english.
parent_country_id: Option<i64>
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v9.services.ReachPlanService.ListPlannableLocations] or directly by accessing [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v9.services.GeoTargetConstantService.GetGeoTargetConstant].
country_code: Option<String>
The ISO-3166-1 alpha-2 country code that is associated with the location.
location_type: Option<String>
The location’s type. Location types correspond to target_type returned by [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v9.services.GeoTargetConstantService.GetGeoTargetConstant].
Implementations
Returns the value of parent_country_id
, or the default value if parent_country_id
is unset.
Returns the value of country_code
, or the default value if country_code
is unset.
Returns the value of location_type
, or the default value if location_type
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PlannableLocation
impl Send for PlannableLocation
impl Sync for PlannableLocation
impl Unpin for PlannableLocation
impl UnwindSafe for PlannableLocation
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more