pub struct DisplayAd {
pub id: Option<i32>,
pub name: String,
pub body_markdown: String,
pub approved: Option<bool>,
pub published: Option<bool>,
pub organization_id: Option<Option<i32>>,
pub creator_id: Option<Option<i32>>,
pub placement_area: PlacementArea,
pub tag_list: Option<String>,
pub article_exclude_ids: Option<Option<String>>,
pub display_to: Option<DisplayTo>,
pub type_of: Option<TypeOf>,
}
Expand description
DisplayAd : A Display Ad, aka Billboard, aka Widget
Fields§
§id: Option<i32>
The ID of the Display Ad
name: String
For internal use, helps distinguish ads from one another
body_markdown: String
The text (in markdown) of the ad (required)
approved: Option<bool>
Ad must be both published and approved to be in rotation
published: Option<bool>
Ad must be both published and approved to be in rotation
organization_id: Option<Option<i32>>
Identifies the organization to which the ad belongs
creator_id: Option<Option<i32>>
Identifies the user who created the ad.
placement_area: PlacementArea
Identifies which area of site layout the ad can appear in
tag_list: Option<String>
Tags on which this ad can be displayed (blank is all/any tags)
article_exclude_ids: Option<Option<String>>
Articles this ad should not appear on (blank means no articles are disallowed, and this ad can appear next to any/all articles). Comma-separated list of integer Article IDs
display_to: Option<DisplayTo>
Potentially limits visitors to whom the ad is visible
type_of: Option<TypeOf>
Types of the billboards: in_house (created by admins), community (created by an entity, appears on entity’s content), external ( created by an entity, or a non-entity, can appear everywhere)