Struct google_api_proto::google::ads::admanager::v1::CustomTargetingKey
source · pub struct CustomTargetingKey {
pub name: String,
pub custom_targeting_key_id: i64,
pub ad_tag_name: String,
pub display_name: String,
pub type: i32,
pub status: i32,
pub reportable_type: i32,
}
Expand description
The CustomTargetingKey
resource.
Fields§
§name: String
Identifier. The resource name of the CustomTargetingKey
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
custom_targeting_key_id: i64
Output only. CustomTargetingKey
ID.
ad_tag_name: String
Immutable. Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: “, ’, =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
display_name: String
Optional. Descriptive name for the CustomTargetingKey
.
type: i32
Required. Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item.
status: i32
Output only. Status of the CustomTargetingKey
.
reportable_type: i32
Required. Reportable state of the CustomTargetingKey
.
Implementations§
source§impl CustomTargetingKey
impl CustomTargetingKey
sourcepub fn type(&self) -> CustomTargetingKeyType
pub fn type(&self) -> CustomTargetingKeyType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: CustomTargetingKeyType)
pub fn set_type(&mut self, value: CustomTargetingKeyType)
Sets type
to the provided enum value.
sourcepub fn status(&self) -> CustomTargetingKeyStatus
pub fn status(&self) -> CustomTargetingKeyStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: CustomTargetingKeyStatus)
pub fn set_status(&mut self, value: CustomTargetingKeyStatus)
Sets status
to the provided enum value.
sourcepub fn reportable_type(&self) -> CustomTargetingKeyReportableType
pub fn reportable_type(&self) -> CustomTargetingKeyReportableType
Returns the enum value of reportable_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reportable_type(&mut self, value: CustomTargetingKeyReportableType)
pub fn set_reportable_type(&mut self, value: CustomTargetingKeyReportableType)
Sets reportable_type
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomTargetingKey
impl Clone for CustomTargetingKey
source§fn clone(&self) -> CustomTargetingKey
fn clone(&self) -> CustomTargetingKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomTargetingKey
impl Debug for CustomTargetingKey
source§impl Default for CustomTargetingKey
impl Default for CustomTargetingKey
source§impl Message for CustomTargetingKey
impl Message for CustomTargetingKey
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 CustomTargetingKey
impl PartialEq for CustomTargetingKey
source§fn eq(&self, other: &CustomTargetingKey) -> bool
fn eq(&self, other: &CustomTargetingKey) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomTargetingKey
Auto Trait Implementations§
impl Freeze for CustomTargetingKey
impl RefUnwindSafe for CustomTargetingKey
impl Send for CustomTargetingKey
impl Sync for CustomTargetingKey
impl Unpin for CustomTargetingKey
impl UnwindSafe for CustomTargetingKey
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