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<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
.Source§impl PartialEq for AssetGroup
impl PartialEq for AssetGroup
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
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