Struct google_api_proto::google::ads::googleads::v17::resources::AssetGroup
source · pub struct AssetGroup {
pub resource_name: String,
pub id: i64,
pub campaign: String,
pub name: String,
pub final_urls: Vec<String>,
pub final_mobile_urls: Vec<String>,
pub status: i32,
pub primary_status: i32,
pub primary_status_reasons: Vec<i32>,
pub path1: String,
pub path2: String,
pub ad_strength: i32,
}
Expand description
An asset group. AssetGroupAsset is used to link an asset to the asset group. AssetGroupSignal is used to associate a signal to an asset group.
Fields§
§resource_name: String
Immutable. The resource name of the asset group. Asset group resource names have the form:
customers/{customer_id}/assetGroups/{asset_group_id}
id: i64
Output only. The ID of the asset group.
campaign: String
Immutable. The campaign with which this asset group is associated. The asset which is linked to the asset group.
name: String
Required. Name of the asset group. Required. It must have a minimum length of 1 and maximum length of 128. It must be unique under a campaign.
final_urls: Vec<String>
A list of final URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out.
final_mobile_urls: Vec<String>
A list of final mobile URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out.
status: i32
The status of the asset group.
primary_status: i32
Output only. The primary status of the asset group. Provides insights into why an asset group is not serving or not serving optimally.
primary_status_reasons: Vec<i32>
Output only. Provides reasons into why an asset group is not serving or not serving optimally. It will be empty when the asset group is serving without issues.
path1: String
First part of text that may appear appended to the url displayed in the ad.
path2: String
Second part of text that may appear appended to the url displayed in the ad. This field can only be set when path1 is set.
ad_strength: i32
Output only. Overall ad strength of this asset group.
Implementations§
source§impl AssetGroup
impl AssetGroup
sourcepub fn status(&self) -> AssetGroupStatus
pub fn status(&self) -> AssetGroupStatus
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: AssetGroupStatus)
pub fn set_status(&mut self, value: AssetGroupStatus)
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) -> AssetGroupPrimaryStatus
pub fn primary_status(&self) -> AssetGroupPrimaryStatus
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: AssetGroupPrimaryStatus)
pub fn set_primary_status(&mut self, value: AssetGroupPrimaryStatus)
Sets primary_status
to the provided enum value.
sourcepub fn primary_status_reasons(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AssetGroupPrimaryStatusReason>>
pub fn primary_status_reasons( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AssetGroupPrimaryStatusReason>>
Returns an iterator which yields the valid enum values contained in primary_status_reasons
.
sourcepub fn push_primary_status_reasons(
&mut self,
value: AssetGroupPrimaryStatusReason,
)
pub fn push_primary_status_reasons( &mut self, value: AssetGroupPrimaryStatusReason, )
Appends the provided enum value to primary_status_reasons
.
Trait Implementations§
source§impl Clone for AssetGroup
impl Clone for AssetGroup
source§fn clone(&self) -> AssetGroup
fn clone(&self) -> AssetGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssetGroup
impl Debug for AssetGroup
source§impl Default for AssetGroup
impl Default for AssetGroup
source§impl Message for AssetGroup
impl Message for AssetGroup
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 AssetGroup
impl PartialEq for AssetGroup
source§fn eq(&self, other: &AssetGroup) -> bool
fn eq(&self, other: &AssetGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssetGroup
Auto Trait Implementations§
impl Freeze for AssetGroup
impl RefUnwindSafe for AssetGroup
impl Send for AssetGroup
impl Sync for AssetGroup
impl Unpin for AssetGroup
impl UnwindSafe for AssetGroup
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