pub struct AdGroupAd {
pub resource_name: String,
pub status: i32,
pub ad_group: 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>,
pub ad_group_ad_asset_automation_settings: Vec<AdGroupAdAssetAutomationSetting>,
}
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: 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.
ad_group_ad_asset_automation_settings: Vec<AdGroupAdAssetAutomationSetting>
Settings that control the types of asset automation. See the AssetAutomationTypeEnum documentation for the default opt in/out behavior of each type.
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 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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