Struct google_api_proto::google::ads::googleads::v17::resources::AdGroupAdAssetView
source · pub struct AdGroupAdAssetView {
pub resource_name: String,
pub ad_group_ad: Option<String>,
pub asset: Option<String>,
pub field_type: i32,
pub enabled: Option<bool>,
pub policy_summary: Option<AdGroupAdAssetPolicySummary>,
pub performance_label: i32,
pub pinned_field: i32,
pub source: i32,
}
Expand description
A link between an AdGroupAd and an Asset. Currently we only support AdGroupAdAssetView for AppAds and Responsive Search Ads.
Fields§
§resource_name: String
Output only. The resource name of the ad group ad asset view. Ad group ad asset view resource names have the form (Before V4):
customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}
Ad group ad asset view resource names have the form (Beginning from V4):
customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}
ad_group_ad: Option<String>
Output only. The ad group ad to which the asset is linked.
asset: Option<String>
Output only. The asset which is linked to the ad group ad.
field_type: i32
Output only. Role that the asset takes in the ad.
enabled: Option<bool>
Output only. The status between the asset and the latest version of the ad. If true, the asset is linked to the latest version of the ad. If false, it means the link once existed but has been removed and is no longer present in the latest version of the ad.
policy_summary: Option<AdGroupAdAssetPolicySummary>
Output only. Policy information for the ad group ad asset.
performance_label: i32
Output only. Performance of an asset linkage.
pinned_field: i32
Output only. Pinned field.
source: i32
Output only. Source of the ad group ad asset.
Implementations§
source§impl AdGroupAdAssetView
impl AdGroupAdAssetView
sourcepub fn field_type(&self) -> AssetFieldType
pub fn field_type(&self) -> AssetFieldType
Returns the enum value of field_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_field_type(&mut self, value: AssetFieldType)
pub fn set_field_type(&mut self, value: AssetFieldType)
Sets field_type
to the provided enum value.
sourcepub fn performance_label(&self) -> AssetPerformanceLabel
pub fn performance_label(&self) -> AssetPerformanceLabel
Returns the enum value of performance_label
, or the default if the field is set to an invalid enum value.
sourcepub fn set_performance_label(&mut self, value: AssetPerformanceLabel)
pub fn set_performance_label(&mut self, value: AssetPerformanceLabel)
Sets performance_label
to the provided enum value.
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled
, or the default value if enabled
is unset.
sourcepub fn ad_group_ad(&self) -> &str
pub fn ad_group_ad(&self) -> &str
Returns the value of ad_group_ad
, or the default value if ad_group_ad
is unset.
sourcepub fn asset(&self) -> &str
pub fn asset(&self) -> &str
Returns the value of asset
, or the default value if asset
is unset.
sourcepub fn pinned_field(&self) -> ServedAssetFieldType
pub fn pinned_field(&self) -> ServedAssetFieldType
Returns the enum value of pinned_field
, or the default if the field is set to an invalid enum value.
sourcepub fn set_pinned_field(&mut self, value: ServedAssetFieldType)
pub fn set_pinned_field(&mut self, value: ServedAssetFieldType)
Sets pinned_field
to the provided enum value.
sourcepub fn source(&self) -> AssetSource
pub fn source(&self) -> AssetSource
Returns the enum value of source
, or the default if the field is set to an invalid enum value.
sourcepub fn set_source(&mut self, value: AssetSource)
pub fn set_source(&mut self, value: AssetSource)
Sets source
to the provided enum value.
Trait Implementations§
source§impl Clone for AdGroupAdAssetView
impl Clone for AdGroupAdAssetView
source§fn clone(&self) -> AdGroupAdAssetView
fn clone(&self) -> AdGroupAdAssetView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdGroupAdAssetView
impl Debug for AdGroupAdAssetView
source§impl Default for AdGroupAdAssetView
impl Default for AdGroupAdAssetView
source§impl Message for AdGroupAdAssetView
impl Message for AdGroupAdAssetView
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 AdGroupAdAssetView
impl PartialEq for AdGroupAdAssetView
source§fn eq(&self, other: &AdGroupAdAssetView) -> bool
fn eq(&self, other: &AdGroupAdAssetView) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdGroupAdAssetView
Auto Trait Implementations§
impl Freeze for AdGroupAdAssetView
impl RefUnwindSafe for AdGroupAdAssetView
impl Send for AdGroupAdAssetView
impl Sync for AdGroupAdAssetView
impl Unpin for AdGroupAdAssetView
impl UnwindSafe for AdGroupAdAssetView
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