Struct google_api_proto::google::ads::googleads::v15::resources::ConversionAction
source · pub struct ConversionAction {Show 22 fields
pub resource_name: String,
pub id: Option<i64>,
pub name: Option<String>,
pub status: i32,
pub type: i32,
pub origin: i32,
pub primary_for_goal: Option<bool>,
pub category: i32,
pub owner_customer: Option<String>,
pub include_in_conversions_metric: Option<bool>,
pub click_through_lookback_window_days: Option<i64>,
pub view_through_lookback_window_days: Option<i64>,
pub value_settings: Option<ValueSettings>,
pub counting_type: i32,
pub attribution_model_settings: Option<AttributionModelSettings>,
pub tag_snippets: Vec<TagSnippet>,
pub phone_call_duration_seconds: Option<i64>,
pub app_id: Option<String>,
pub mobile_app_vendor: i32,
pub firebase_settings: Option<FirebaseSettings>,
pub third_party_app_analytics_settings: Option<ThirdPartyAppAnalyticsSettings>,
pub google_analytics_4_settings: Option<GoogleAnalytics4Settings>,
}
Expand description
A conversion action.
Fields§
§resource_name: String
Immutable. The resource name of the conversion action. Conversion action resource names have the form:
customers/{customer_id}/conversionActions/{conversion_action_id}
id: Option<i64>
Output only. The ID of the conversion action.
name: Option<String>
The name of the conversion action.
This field is required and should not be empty when creating new conversion actions.
status: i32
The status of this conversion action for conversion event accrual.
type: i32
Immutable. The type of this conversion action.
origin: i32
Output only. The conversion origin of this conversion action.
primary_for_goal: Option<bool>
If a conversion action’s primary_for_goal bit is false, the conversion action is non-biddable for all campaigns regardless of their customer conversion goal or campaign conversion goal. However, custom conversion goals do not respect primary_for_goal, so if a campaign has a custom conversion goal configured with a primary_for_goal = false conversion action, that conversion action is still biddable. By default, primary_for_goal will be true if not set. In V9, primary_for_goal can only be set to false after creation through an ‘update’ operation because it’s not declared as optional.
category: i32
The category of conversions reported for this conversion action.
owner_customer: Option<String>
Output only. The resource name of the conversion action owner customer, or null if this is a system-defined conversion action.
include_in_conversions_metric: Option<bool>
Whether this conversion action should be included in the “conversions” metric.
click_through_lookback_window_days: Option<i64>
The maximum number of days that may elapse between an interaction (for example, a click) and a conversion event.
view_through_lookback_window_days: Option<i64>
The maximum number of days which may elapse between an impression and a conversion without an interaction.
value_settings: Option<ValueSettings>
Settings related to the value for conversion events associated with this conversion action.
counting_type: i32
How to count conversion events for the conversion action.
attribution_model_settings: Option<AttributionModelSettings>
Settings related to this conversion action’s attribution model.
tag_snippets: Vec<TagSnippet>
Output only. The snippets used for tracking conversions.
phone_call_duration_seconds: Option<i64>
The phone call duration in seconds after which a conversion should be reported for this conversion action.
The value must be between 0 and 10000, inclusive.
app_id: Option<String>
App ID for an app conversion action.
mobile_app_vendor: i32
Output only. Mobile app vendor for an app conversion action.
firebase_settings: Option<FirebaseSettings>
Output only. Firebase settings for Firebase conversion types.
third_party_app_analytics_settings: Option<ThirdPartyAppAnalyticsSettings>
Output only. Third Party App Analytics settings for third party conversion types.
google_analytics_4_settings: Option<GoogleAnalytics4Settings>
Output only. Google Analytics 4 settings for Google Analytics 4 conversion types.
Implementations§
source§impl ConversionAction
impl ConversionAction
sourcepub fn status(&self) -> ConversionActionStatus
pub fn status(&self) -> ConversionActionStatus
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: ConversionActionStatus)
pub fn set_status(&mut self, value: ConversionActionStatus)
Sets status
to the provided enum value.
sourcepub fn type(&self) -> ConversionActionType
pub fn type(&self) -> ConversionActionType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: ConversionActionType)
pub fn set_type(&mut self, value: ConversionActionType)
Sets type
to the provided enum value.
sourcepub fn category(&self) -> ConversionActionCategory
pub fn category(&self) -> ConversionActionCategory
Returns the enum value of category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_category(&mut self, value: ConversionActionCategory)
pub fn set_category(&mut self, value: ConversionActionCategory)
Sets category
to the provided enum value.
sourcepub fn counting_type(&self) -> ConversionActionCountingType
pub fn counting_type(&self) -> ConversionActionCountingType
Returns the enum value of counting_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_counting_type(&mut self, value: ConversionActionCountingType)
pub fn set_counting_type(&mut self, value: ConversionActionCountingType)
Sets counting_type
to the provided enum value.
sourcepub fn mobile_app_vendor(&self) -> MobileAppVendor
pub fn mobile_app_vendor(&self) -> MobileAppVendor
Returns the enum value of mobile_app_vendor
, or the default if the field is set to an invalid enum value.
sourcepub fn set_mobile_app_vendor(&mut self, value: MobileAppVendor)
pub fn set_mobile_app_vendor(&mut self, value: MobileAppVendor)
Sets mobile_app_vendor
to the provided enum value.
sourcepub fn owner_customer(&self) -> &str
pub fn owner_customer(&self) -> &str
Returns the value of owner_customer
, or the default value if owner_customer
is unset.
sourcepub fn include_in_conversions_metric(&self) -> bool
pub fn include_in_conversions_metric(&self) -> bool
Returns the value of include_in_conversions_metric
, or the default value if include_in_conversions_metric
is unset.
sourcepub fn click_through_lookback_window_days(&self) -> i64
pub fn click_through_lookback_window_days(&self) -> i64
Returns the value of click_through_lookback_window_days
, or the default value if click_through_lookback_window_days
is unset.
sourcepub fn view_through_lookback_window_days(&self) -> i64
pub fn view_through_lookback_window_days(&self) -> i64
Returns the value of view_through_lookback_window_days
, or the default value if view_through_lookback_window_days
is unset.
sourcepub fn phone_call_duration_seconds(&self) -> i64
pub fn phone_call_duration_seconds(&self) -> i64
Returns the value of phone_call_duration_seconds
, or the default value if phone_call_duration_seconds
is unset.
sourcepub fn app_id(&self) -> &str
pub fn app_id(&self) -> &str
Returns the value of app_id
, or the default value if app_id
is unset.
sourcepub fn origin(&self) -> ConversionOrigin
pub fn origin(&self) -> ConversionOrigin
Returns the enum value of origin
, or the default if the field is set to an invalid enum value.
sourcepub fn set_origin(&mut self, value: ConversionOrigin)
pub fn set_origin(&mut self, value: ConversionOrigin)
Sets origin
to the provided enum value.
sourcepub fn primary_for_goal(&self) -> bool
pub fn primary_for_goal(&self) -> bool
Returns the value of primary_for_goal
, or the default value if primary_for_goal
is unset.
Trait Implementations§
source§impl Clone for ConversionAction
impl Clone for ConversionAction
source§fn clone(&self) -> ConversionAction
fn clone(&self) -> ConversionAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionAction
impl Debug for ConversionAction
source§impl Default for ConversionAction
impl Default for ConversionAction
source§impl Message for ConversionAction
impl Message for ConversionAction
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 ConversionAction
impl PartialEq for ConversionAction
source§fn eq(&self, other: &ConversionAction) -> bool
fn eq(&self, other: &ConversionAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionAction
Auto Trait Implementations§
impl Freeze for ConversionAction
impl RefUnwindSafe for ConversionAction
impl Send for ConversionAction
impl Sync for ConversionAction
impl Unpin for ConversionAction
impl UnwindSafe for ConversionAction
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