pub struct Campaign {
pub advertiser_id: Option<i64>,
pub campaign_budgets: Option<Vec<CampaignBudget>>,
pub campaign_flight: Option<CampaignFlight>,
pub campaign_goal: Option<CampaignGoal>,
pub campaign_id: Option<i64>,
pub display_name: Option<String>,
pub entity_status: Option<String>,
pub frequency_cap: Option<FrequencyCap>,
pub name: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
A single campaign.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- campaigns create advertisers (request|response)
- campaigns get advertisers (response)
- campaigns patch advertisers (request|response)
Fields§
§advertiser_id: Option<i64>
Output only. The unique ID of the advertiser the campaign belongs to.
campaign_budgets: Option<Vec<CampaignBudget>>
The list of budgets available to this campaign. If this field is not set, the campaign uses an unlimited budget.
campaign_flight: Option<CampaignFlight>
Required. The planned spend and duration of the campaign.
campaign_goal: Option<CampaignGoal>
Required. The goal of the campaign.
campaign_id: Option<i64>
Output only. The unique ID of the campaign. Assigned by the system.
display_name: Option<String>
Required. The display name of the campaign. Must be UTF-8 encoded with a maximum size of 240 bytes.
entity_status: Option<String>
Required. Controls whether or not the insertion orders under this campaign can spend their budgets and bid on inventory. * Accepted values are ENTITY_STATUS_ACTIVE
, ENTITY_STATUS_ARCHIVED
, and ENTITY_STATUS_PAUSED
. * For CreateCampaign method, ENTITY_STATUS_ARCHIVED
is not allowed.
frequency_cap: Option<FrequencyCap>
Required. The frequency cap setting of the campaign.
name: Option<String>
Output only. The resource name of the campaign.
update_time: Option<DateTime<Utc>>
Output only. The timestamp when the campaign was last updated. Assigned by the system.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Campaign
impl<'de> Deserialize<'de> for Campaign
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 RequestValue for Campaign
impl ResponseResult for Campaign
Auto Trait Implementations§
impl Freeze for Campaign
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnwindSafe for Campaign
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