pub struct ConversionAction {Show 22 fields
pub resource_name: String,
pub id: i64,
pub name: String,
pub status: i32,
pub type: i32,
pub origin: i32,
pub primary_for_goal: bool,
pub category: i32,
pub owner_customer: String,
pub include_in_conversions_metric: bool,
pub click_through_lookback_window_days: i64,
pub view_through_lookback_window_days: 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: i64,
pub app_id: 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: i64
Output only. The ID of the conversion action.
name: 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: 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: 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: bool
Whether this conversion action should be included in the “conversions” metric.
click_through_lookback_window_days: 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: 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: 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: 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 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.
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<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 ConversionAction
impl PartialEq for ConversionAction
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
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