Struct gapi_grpc::google::ads::googleads::v7::common::MatchingFunction[][src]

pub struct MatchingFunction {
    pub function_string: String,
    pub operator: i32,
    pub left_operands: Vec<Operand>,
    pub right_operands: Vec<Operand>,
}

Matching function associated with a CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used to filter the set of feed items selected.

Fields

function_string: String

String representation of the Function.

Examples:

  1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
  2. EQUALS(CONTEXT.DEVICE,“Mobile”)
  3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
  4. CONTAINS_ANY(FeedAttribute[12345678,0],{“Mars cruise”,“Venus cruise”})
  5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,“Mobile”))

For more details, visit https://developers.google.com/adwords/api/docs/guides/feed-matching-functions

Note that because multiple strings may represent the same underlying function (whitespace and single versus double quotation marks, for example), the value returned may not be identical to the string sent in a mutate request.

operator: i32

Operator for a function.

left_operands: Vec<Operand>

The operands on the left hand side of the equation. This is also the operand to be used for single operand expressions such as NOT.

right_operands: Vec<Operand>

The operands on the right hand side of the equation.

Implementations

impl MatchingFunction[src]

pub fn operator(&self) -> MatchingFunctionOperator[src]

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

pub fn set_operator(&mut self, value: MatchingFunctionOperator)[src]

Sets operator to the provided enum value.

Trait Implementations

impl Clone for MatchingFunction[src]

impl Debug for MatchingFunction[src]

impl Default for MatchingFunction[src]

impl Message for MatchingFunction[src]

impl PartialEq<MatchingFunction> for MatchingFunction[src]

impl StructuralPartialEq for MatchingFunction[src]

Auto Trait Implementations

impl RefUnwindSafe for MatchingFunction

impl Send for MatchingFunction

impl Sync for MatchingFunction

impl Unpin for MatchingFunction

impl UnwindSafe for MatchingFunction

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]