[][src]Struct beeswax::resource::advertiser::CreateAdvertiser

pub struct CreateAdvertiser {
    pub advertiser_name: String,
    pub attributes: Option<JsonValue>,
    pub conversion_method_id: ConversionMethod,
    pub default_click_url: Option<String>,
    pub default_continent: Option<Continent>,
    pub default_currency: Option<Currency>,
    pub default_creative_thumbnail_url: Option<String>,
    pub default_campaign_preset_id: Option<u64>,
    pub default_line_item_preset_id: Option<u64>,
    pub alternative_id: Option<String>,
    pub notes: Option<String>,
    pub active: bool,
}

Fields

advertiser_name: String

Unique name for the advertiser, must be unique per account.

attributes: Option<JsonValue>

Creative attributes in JSON

<module_name> object The overall statement can include any number of modules, but each module may only appear once. Example of a module is advertiser

array of mixed types Key must belong to the module selected, the value must be a list of one or more values corresponding to the key. Values may be integers or strings depending on the key.

conversion_method_id: ConversionMethod

The conversion attribution to use for Events owned by this Advertiser. Must be a valid attribution method as found in the conversion_atrtibution_methods view. At this time only method 1 (last click) is supported. Once a conversion method is chosen, it cannot be changed.

default_click_url: Option<String>

Click URL to use by default for objects created under this advertiser

default_continent: Option<Continent>

Continent in which this Advertiser's Campaigns should be eligible to serve. Can be changed at the Campaign level.

default_currency: Option<Currency>

Currency to use as default for all Campaigns under this Advertiser

default_creative_thumbnail_url: Option<String>

URL of a thumbnail image to use when a Creative does not have one. This is useful since some exchanges may not allow a Creative to run without a thumbnail.

default_campaign_preset_id: Option<u64>

The preset to use by default for all campaigns created under this advertiser. Note, presets can only be created in the UI.

default_line_item_preset_id: Option<u64>

The preset to use by default for all line items created under this advertiser. Note, presets can only be created in the UI.

alternative_id: Option<String>

An alternative id to associate, if desired

notes: Option<String>

Any notes desired, less than 255 chars

active: bool

Is the advertier active

Implementations

impl CreateAdvertiser[src]

pub fn builder(
) -> CreateAdvertiserBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
[src]

Create a builder for building CreateAdvertiser. On the builder, call .advertiser_name(...), .attributes(...)(optional), .conversion_method_id(...)(optional), .default_click_url(...)(optional), .default_continent(...)(optional), .default_currency(...)(optional), .default_creative_thumbnail_url(...)(optional), .default_campaign_preset_id(...)(optional), .default_line_item_preset_id(...)(optional), .alternative_id(...)(optional), .notes(...)(optional), .active(...)(optional) to set the values of the fields (they accept Into values). Finally, call .build() to create the instance of CreateAdvertiser.

Trait Implementations

impl Clone for CreateAdvertiser[src]

impl Create<Advertiser> for CreateAdvertiser[src]

impl Debug for CreateAdvertiser[src]

impl Default for CreateAdvertiser[src]

impl<'de> Deserialize<'de> for CreateAdvertiser[src]

impl Serialize for CreateAdvertiser[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]