pub struct TargetingTemplate {Show 13 fields
pub kind: Option<String>,
pub subaccount_id: Option<String>,
pub name: Option<String>,
pub day_part_targeting: Option<DayPartTargeting>,
pub key_value_targeting_expression: Option<KeyValueTargetingExpression>,
pub list_targeting_expression: Option<ListTargetingExpression>,
pub language_targeting: Option<LanguageTargeting>,
pub advertiser_id: Option<String>,
pub geo_targeting: Option<GeoTargeting>,
pub advertiser_id_dimension_value: Option<DimensionValue>,
pub technology_targeting: Option<TechnologyTargeting>,
pub id: Option<String>,
pub account_id: Option<String>,
}
Expand description
Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
§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).
- insert targeting templates (request|response)
- update targeting templates (request|response)
- get targeting templates (response)
- list targeting templates (none)
- patch targeting templates (request|response)
Fields§
§kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string “dfareporting#targetingTemplate”.
subaccount_id: Option<String>
Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
name: Option<String>
Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
day_part_targeting: Option<DayPartTargeting>
Time and day targeting criteria.
key_value_targeting_expression: Option<KeyValueTargetingExpression>
Key-value targeting criteria.
list_targeting_expression: Option<ListTargetingExpression>
Remarketing list targeting criteria.
language_targeting: Option<LanguageTargeting>
Language targeting criteria.
advertiser_id: Option<String>
Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
geo_targeting: Option<GeoTargeting>
Geographical targeting criteria.
advertiser_id_dimension_value: Option<DimensionValue>
Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
technology_targeting: Option<TechnologyTargeting>
Technology platform targeting criteria.
id: Option<String>
ID of this targeting template. This is a read-only, auto-generated field.
account_id: Option<String>
Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
Trait Implementations§
source§impl Clone for TargetingTemplate
impl Clone for TargetingTemplate
source§fn clone(&self) -> TargetingTemplate
fn clone(&self) -> TargetingTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetingTemplate
impl Debug for TargetingTemplate
source§impl Default for TargetingTemplate
impl Default for TargetingTemplate
source§fn default() -> TargetingTemplate
fn default() -> TargetingTemplate
source§impl Deserialize for TargetingTemplate
impl Deserialize for TargetingTemplate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
source§impl Serialize for TargetingTemplate
impl Serialize for TargetingTemplate
impl RequestValue for TargetingTemplate
impl Resource for TargetingTemplate
impl ResponseResult for TargetingTemplate
Auto Trait Implementations§
impl Freeze for TargetingTemplate
impl RefUnwindSafe for TargetingTemplate
impl Send for TargetingTemplate
impl Sync for TargetingTemplate
impl Unpin for TargetingTemplate
impl UnwindSafe for TargetingTemplate
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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