Struct gapi_grpc::google::ads::googleads::v5::common::TargetRestriction[][src]

pub struct TargetRestriction {
    pub targeting_dimension: i32,
    pub bid_only: bool,
}

The list of per-targeting-dimension targeting settings.

Fields

targeting_dimension: i32

The targeting dimension that these settings apply to.

bid_only: bool

Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions. A value of true means that these criteria will only apply bid modifiers, and not affect targeting. A value of false means that these criteria will restrict targeting as well as applying bid modifiers.

Implementations

impl TargetRestriction[src]

pub fn targeting_dimension(&self) -> TargetingDimension[src]

Returns the enum value of targeting_dimension, or the default if the field is set to an invalid enum value.

pub fn set_targeting_dimension(&mut self, value: TargetingDimension)[src]

Sets targeting_dimension to the provided enum value.

Trait Implementations

impl Clone for TargetRestriction[src]

impl Debug for TargetRestriction[src]

impl Default for TargetRestriction[src]

impl Message for TargetRestriction[src]

impl PartialEq<TargetRestriction> for TargetRestriction[src]

impl StructuralPartialEq for TargetRestriction[src]

Auto Trait Implementations

impl RefUnwindSafe for TargetRestriction

impl Send for TargetRestriction

impl Sync for TargetRestriction

impl Unpin for TargetRestriction

impl UnwindSafe for TargetRestriction

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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>, 
[src]

impl<T> WithSubscriber for T[src]