Struct googapis::google::ads::googleads::v8::common::MatchingFunction [−][src]
pub struct MatchingFunction {
pub function_string: Option<String>,
pub operator: i32,
pub left_operands: Vec<Operand>,
pub right_operands: Vec<Operand>,
}
Expand description
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: Option<String>
String representation of the Function.
Examples:
- IDENTITY(true) or IDENTITY(false). All or no feed items served.
- EQUALS(CONTEXT.DEVICE,“Mobile”)
- IN(FEED_ITEM_ID,{1000001,1000002,1000003})
- CONTAINS_ANY(FeedAttribute[12345678,0],{“Mars cruise”,“Venus cruise”})
- 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
Returns the enum value of operator
, or the default if the field is set to an invalid enum value.
Sets operator
to the provided enum value.
Returns the value of function_string
, or the default value if function_string
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more