pub struct AdGroupAd {
pub resource_name: String,
pub status: i32,
pub ad_group: Option<String>,
pub ad: Option<Ad>,
pub policy_summary: Option<AdGroupAdPolicySummary>,
pub ad_strength: i32,
pub action_items: Vec<String>,
pub labels: Vec<String>,
pub primary_status: i32,
pub primary_status_reasons: Vec<i32>,
}
Expand description
An ad group ad.
Fields§
§resource_name: String
Immutable. The resource name of the ad. Ad group ad resource names have the form:
customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}
status: i32
The status of the ad.
ad_group: Option<String>
Immutable. The ad group to which the ad belongs.
ad: Option<Ad>
Immutable. The ad.
policy_summary: Option<AdGroupAdPolicySummary>
Output only. Policy information for the ad.
ad_strength: i32
Output only. Overall ad strength for this ad group ad.
action_items: Vec<String>
Output only. A list of recommendations to improve the ad strength. For example, a recommendation could be “Try adding a few more unique headlines or unpinning some assets.”.
labels: Vec<String>
Output only. The resource names of labels attached to this ad group ad.
primary_status: i32
Output only. Provides aggregated view into why an ad group ad is not serving or not serving optimally.
primary_status_reasons: Vec<i32>
Output only. Provides reasons for why an ad group ad is not serving or not serving optimally.
Implementations§
source§impl AdGroupAd
impl AdGroupAd
sourcepub fn status(&self) -> AdGroupAdStatus
pub fn status(&self) -> AdGroupAdStatus
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: AdGroupAdStatus)
pub fn set_status(&mut self, value: AdGroupAdStatus)
Sets status
to the provided enum value.
sourcepub fn ad_strength(&self) -> AdStrength
pub fn ad_strength(&self) -> AdStrength
Returns the enum value of ad_strength
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ad_strength(&mut self, value: AdStrength)
pub fn set_ad_strength(&mut self, value: AdStrength)
Sets ad_strength
to the provided enum value.
sourcepub fn ad_group(&self) -> &str
pub fn ad_group(&self) -> &str
Returns the value of ad_group
, or the default value if ad_group
is unset.
sourcepub fn primary_status(&self) -> AdGroupAdPrimaryStatus
pub fn primary_status(&self) -> AdGroupAdPrimaryStatus
Returns the enum value of primary_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_primary_status(&mut self, value: AdGroupAdPrimaryStatus)
pub fn set_primary_status(&mut self, value: AdGroupAdPrimaryStatus)
Sets primary_status
to the provided enum value.
sourcepub fn primary_status_reasons(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AdGroupAdPrimaryStatusReason>>
pub fn primary_status_reasons( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AdGroupAdPrimaryStatusReason>>
Returns an iterator which yields the valid enum values contained in primary_status_reasons
.
sourcepub fn push_primary_status_reasons(
&mut self,
value: AdGroupAdPrimaryStatusReason,
)
pub fn push_primary_status_reasons( &mut self, value: AdGroupAdPrimaryStatusReason, )
Appends the provided enum value to primary_status_reasons
.
Trait Implementations§
source§impl Message for AdGroupAd
impl Message for AdGroupAd
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 AdGroupAd
impl PartialEq for AdGroupAd
impl StructuralPartialEq for AdGroupAd
Auto Trait Implementations§
impl !Freeze for AdGroupAd
impl RefUnwindSafe for AdGroupAd
impl Send for AdGroupAd
impl Sync for AdGroupAd
impl Unpin for AdGroupAd
impl UnwindSafe for AdGroupAd
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