pub struct CampaignBudget {
pub budget_amount_micros: Option<i64>,
pub budget_id: Option<i64>,
pub budget_unit: Option<String>,
pub date_range: Option<DateRange>,
pub display_name: Option<String>,
pub external_budget_id: Option<String>,
pub external_budget_source: Option<String>,
pub invoice_grouping_id: Option<String>,
pub prisma_config: Option<PrismaConfig>,
}
Expand description
Settings that control how the campaign budget is allocated.
This type is not used in any activity, and only used as part of another schema.
Fields§
§budget_amount_micros: Option<i64>
Required. The total amount the linked insertion order segments can budget. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
budget_id: Option<i64>
The unique ID of the campaign budget. Assigned by the system. Do not set for new budgets. Must be included when updating or adding budgets to campaign_budgets. Otherwise, a new ID will be generated and assigned.
budget_unit: Option<String>
Required. Immutable. Specifies whether the budget is measured in currency or impressions.
date_range: Option<DateRange>
Required. The date range for the campaign budget. Linked budget segments may have a different date range. They are resolved relative to the parent advertiser’s time zone. Both start_date
and end_date
must be before the year 2037.
display_name: Option<String>
Required. The display name of the budget. Must be UTF-8 encoded with a maximum size of 240 bytes.
external_budget_id: Option<String>
Immutable. The ID identifying this budget to the external source. If this field is set and the invoice detail level of the corresponding billing profile is set to “Budget level PO”, all impressions served against this budget will include this ID on the invoice. Must be unique under the campaign.
external_budget_source: Option<String>
Required. The external source of the budget.
invoice_grouping_id: Option<String>
Immutable. The ID used to group budgets to be included the same invoice. If this field is set and the invoice level of the corresponding billing profile is set to “Budget invoice grouping ID”, all external_budget_id sharing the same invoice_grouping_id will be grouped in the same invoice.
prisma_config: Option<PrismaConfig>
Additional metadata for use by the Mediaocean Prisma tool. Required for Mediaocean budgets. Only applicable to prisma_enabled advertisers.
Trait Implementations§
Source§impl Clone for CampaignBudget
impl Clone for CampaignBudget
Source§fn clone(&self) -> CampaignBudget
fn clone(&self) -> CampaignBudget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CampaignBudget
impl Debug for CampaignBudget
Source§impl Default for CampaignBudget
impl Default for CampaignBudget
Source§fn default() -> CampaignBudget
fn default() -> CampaignBudget
Source§impl<'de> Deserialize<'de> for CampaignBudget
impl<'de> Deserialize<'de> for CampaignBudget
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 CampaignBudget
impl Serialize for CampaignBudget
impl Part for CampaignBudget
Auto Trait Implementations§
impl Freeze for CampaignBudget
impl RefUnwindSafe for CampaignBudget
impl Send for CampaignBudget
impl Sync for CampaignBudget
impl Unpin for CampaignBudget
impl UnwindSafe for CampaignBudget
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