pub enum BudgetLevel {
Adset,
Campaign,
}Expand description
Meta only. Where the budget lives, which selects the Meta budget model: - adset (default): ABO (Ad-set Budget Optimization). The budget is set on the ad set. This is the back-compatible behaviour — omit this field to keep it. - campaign: CBO (Campaign Budget Optimization / Advantage Campaign Budget). The budget AND bidStrategy are set on the CAMPAIGN, and Meta distributes spend across ad sets automatically. Meta requires the budget at exactly one level, never both. Non-Meta platforms ignore this field. Ignored on the attach shape (adSetId), which inherits the existing budget.
Variants§
Trait Implementations§
Source§impl Clone for BudgetLevel
impl Clone for BudgetLevel
Source§fn clone(&self) -> BudgetLevel
fn clone(&self) -> BudgetLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BudgetLevel
Source§impl Debug for BudgetLevel
impl Debug for BudgetLevel
Source§impl Default for BudgetLevel
impl Default for BudgetLevel
Source§fn default() -> BudgetLevel
fn default() -> BudgetLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BudgetLevel
impl<'de> Deserialize<'de> for BudgetLevel
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BudgetLevel
Source§impl Hash for BudgetLevel
impl Hash for BudgetLevel
Source§impl Ord for BudgetLevel
impl Ord for BudgetLevel
Source§fn cmp(&self, other: &BudgetLevel) -> Ordering
fn cmp(&self, other: &BudgetLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BudgetLevel
impl PartialEq for BudgetLevel
Source§fn eq(&self, other: &BudgetLevel) -> bool
fn eq(&self, other: &BudgetLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BudgetLevel
impl PartialOrd for BudgetLevel
Source§impl Serialize for BudgetLevel
impl Serialize for BudgetLevel
impl StructuralPartialEq for BudgetLevel
Auto Trait Implementations§
impl Freeze for BudgetLevel
impl RefUnwindSafe for BudgetLevel
impl Send for BudgetLevel
impl Sync for BudgetLevel
impl Unpin for BudgetLevel
impl UnsafeUnpin for BudgetLevel
impl UnwindSafe for BudgetLevel
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
Mutably borrows from an owned value. Read more