pub struct PerformanceGoal {
pub performance_goal_amount_micros: Option<i64>,
pub performance_goal_percentage_micros: Option<i64>,
pub performance_goal_string: Option<String>,
pub performance_goal_type: Option<String>,
}
Expand description
Settings that control the performance goal of a campaign.
This type is not used in any activity, and only used as part of another schema.
Fields§
§performance_goal_amount_micros: Option<i64>
The goal amount, in micros of the advertiser’s currency. Applicable when performance_goal_type is one of: * PERFORMANCE_GOAL_TYPE_CPM
* PERFORMANCE_GOAL_TYPE_CPC
* PERFORMANCE_GOAL_TYPE_CPA
* PERFORMANCE_GOAL_TYPE_CPIAVC
* PERFORMANCE_GOAL_TYPE_VCPM
For example 1500000 represents 1.5 standard units of the currency.
performance_goal_percentage_micros: Option<i64>
The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * PERFORMANCE_GOAL_TYPE_CTR
* PERFORMANCE_GOAL_TYPE_VIEWABILITY
* PERFORMANCE_GOAL_TYPE_CLICK_CVR
* PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR
* PERFORMANCE_GOAL_TYPE_VTR
* PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE
* PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE
For example, 70000 represents 7% (decimal 0.07).
performance_goal_string: Option<String>
A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to PERFORMANCE_GOAL_TYPE_OTHER
.
performance_goal_type: Option<String>
Required. The type of the performance goal.
Trait Implementations§
Source§impl Clone for PerformanceGoal
impl Clone for PerformanceGoal
Source§fn clone(&self) -> PerformanceGoal
fn clone(&self) -> PerformanceGoal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PerformanceGoal
impl Debug for PerformanceGoal
Source§impl Default for PerformanceGoal
impl Default for PerformanceGoal
Source§fn default() -> PerformanceGoal
fn default() -> PerformanceGoal
Source§impl<'de> Deserialize<'de> for PerformanceGoal
impl<'de> Deserialize<'de> for PerformanceGoal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PerformanceGoal
impl Serialize for PerformanceGoal
impl Part for PerformanceGoal
Auto Trait Implementations§
impl Freeze for PerformanceGoal
impl RefUnwindSafe for PerformanceGoal
impl Send for PerformanceGoal
impl Sync for PerformanceGoal
impl Unpin for PerformanceGoal
impl UnwindSafe for PerformanceGoal
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more