Campaign

Struct Campaign 

Source
pub struct Campaign {
Show 28 fields pub comment: Option<String>, pub start_date: Option<String>, pub end_date: Option<String>, pub click_through_url_suffix_properties: Option<ClickThroughUrlSuffixProperties>, pub archived: Option<bool>, pub additional_creative_optimization_configurations: Option<Vec<CreativeOptimizationConfiguration>>, pub advertiser_id: Option<String>, pub audience_segment_groups: Option<Vec<AudienceSegmentGroup>>, pub create_info: Option<LastModifiedInfo>, pub default_click_through_event_tag_properties: Option<DefaultClickThroughEventTagProperties>, pub advertiser_id_dimension_value: Option<DimensionValue>, pub event_tag_overrides: Option<Vec<EventTagOverride>>, pub creative_optimization_configuration: Option<CreativeOptimizationConfiguration>, pub id: Option<String>, pub account_id: Option<String>, pub trafficker_emails: Option<Vec<String>>, pub creative_group_ids: Option<Vec<String>>, pub subaccount_id: Option<String>, pub name: Option<String>, pub lookback_configuration: Option<LookbackConfiguration>, pub nielsen_ocr_enabled: Option<bool>, pub last_modified_info: Option<LastModifiedInfo>, pub comscore_vce_enabled: Option<bool>, pub kind: Option<String>, pub external_id: Option<String>, pub advertiser_group_id: Option<String>, pub id_dimension_value: Option<DimensionValue>, pub billing_invoice_code: Option<String>,
}
Expand description

Contains properties of a DCM 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).

Fields§

§comment: Option<String>

Arbitrary comments about this campaign. Must be less than 256 characters long.

§start_date: Option<String>

Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field.

§end_date: Option<String>

Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field.

§click_through_url_suffix_properties: Option<ClickThroughUrlSuffixProperties>

Click-through URL suffix override properties for this campaign.

§archived: Option<bool>

Whether this campaign has been archived.

§additional_creative_optimization_configurations: Option<Vec<CreativeOptimizationConfiguration>>

Additional creative optimization configurations for the campaign.

§advertiser_id: Option<String>

Advertiser ID of this campaign. This is a required field.

§audience_segment_groups: Option<Vec<AudienceSegmentGroup>>

Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.

§create_info: Option<LastModifiedInfo>

Information about the creation of this campaign. This is a read-only field.

§default_click_through_event_tag_properties: Option<DefaultClickThroughEventTagProperties>

Click-through event tag ID override properties for this campaign.

§advertiser_id_dimension_value: Option<DimensionValue>

Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.

§event_tag_overrides: Option<Vec<EventTagOverride>>

Overrides that can be used to activate or deactivate advertiser event tags.

§creative_optimization_configuration: Option<CreativeOptimizationConfiguration>

Creative optimization configuration for the campaign.

§id: Option<String>

ID of this campaign. This is a read-only auto-generated field.

§account_id: Option<String>

Account ID of this campaign. This is a read-only field that can be left blank.

§trafficker_emails: Option<Vec<String>>

Campaign trafficker contact emails.

§creative_group_ids: Option<Vec<String>>

List of creative group IDs that are assigned to the campaign.

§subaccount_id: Option<String>

Subaccount ID of this campaign. This is a read-only field that can be left blank.

§name: Option<String>

Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser.

§lookback_configuration: Option<LookbackConfiguration>

Lookback window settings for the campaign.

§nielsen_ocr_enabled: Option<bool>

Whether Nielsen reports are enabled for this campaign.

§last_modified_info: Option<LastModifiedInfo>

Information about the most recent modification of this campaign. This is a read-only field.

§comscore_vce_enabled: Option<bool>

Whether comScore vCE reports are enabled for this campaign.

§kind: Option<String>

Identifies what kind of resource this is. Value: the fixed string “dfareporting#campaign”.

§external_id: Option<String>

External ID for this campaign.

§advertiser_group_id: Option<String>

Advertiser group ID of the associated advertiser.

§id_dimension_value: Option<DimensionValue>

Dimension value for the ID of this campaign. This is a read-only, auto-generated field.

§billing_invoice_code: Option<String>

Billing invoice code included in the DCM client billing invoices associated with the campaign.

Trait Implementations§

Source§

impl Clone for Campaign

Source§

fn clone(&self) -> Campaign

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Campaign

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Campaign

Source§

fn default() -> Campaign

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Campaign

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Campaign

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for Campaign

Source§

impl Resource for Campaign

Source§

impl ResponseResult for Campaign

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Typeable for T
where T: Any,

Source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,