pub struct PerformanceGoalBidStrategy {
pub custom_bidding_algorithm_id: Option<i64>,
pub max_average_cpm_bid_amount_micros: Option<i64>,
pub performance_goal_amount_micros: Option<i64>,
pub performance_goal_type: Option<String>,
}
Expand description
A strategy that automatically adjusts the bid to meet or beat a specified performance goal.
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_bidding_algorithm_id: Option<i64>
The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO
.
max_average_cpm_bid_amount_micros: Option<i64>
The maximum average CPM that may be bid, in micros of the advertiser’s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM
. For example, 1500000 represents 1.5 standard units of the currency.
performance_goal_amount_micros: Option<i64>
Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser’s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser’s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA
, upper bound is 10000.00 USD. * when performance_goal_type is BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC
, upper bound is 1000.00 USD. * when performance_goal_type is BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM
, upper bound is 1000.00 USD. * when performance_goal_type is BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO
, upper bound is 1000.00 and lower bound is 0.01. Example: If set to BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM
, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
performance_goal_type: Option<String>
Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA
* BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC
* BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM
* BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO
.
Trait Implementations§
Source§impl Clone for PerformanceGoalBidStrategy
impl Clone for PerformanceGoalBidStrategy
Source§fn clone(&self) -> PerformanceGoalBidStrategy
fn clone(&self) -> PerformanceGoalBidStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PerformanceGoalBidStrategy
impl Debug for PerformanceGoalBidStrategy
Source§impl Default for PerformanceGoalBidStrategy
impl Default for PerformanceGoalBidStrategy
Source§fn default() -> PerformanceGoalBidStrategy
fn default() -> PerformanceGoalBidStrategy
Source§impl<'de> Deserialize<'de> for PerformanceGoalBidStrategy
impl<'de> Deserialize<'de> for PerformanceGoalBidStrategy
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>,
impl Part for PerformanceGoalBidStrategy
Auto Trait Implementations§
impl Freeze for PerformanceGoalBidStrategy
impl RefUnwindSafe for PerformanceGoalBidStrategy
impl Send for PerformanceGoalBidStrategy
impl Sync for PerformanceGoalBidStrategy
impl Unpin for PerformanceGoalBidStrategy
impl UnwindSafe for PerformanceGoalBidStrategy
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