pub struct MatchingFunction {
pub function_string: 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: 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/google-ads/api/docs/extensions/feeds/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§
Source§impl MatchingFunction
impl MatchingFunction
Sourcepub fn operator(&self) -> MatchingFunctionOperator
pub fn operator(&self) -> MatchingFunctionOperator
Returns the enum value of operator
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_operator(&mut self, value: MatchingFunctionOperator)
pub fn set_operator(&mut self, value: MatchingFunctionOperator)
Sets operator
to the provided enum value.
Trait Implementations§
Source§impl Clone for MatchingFunction
impl Clone for MatchingFunction
Source§fn clone(&self) -> MatchingFunction
fn clone(&self) -> MatchingFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MatchingFunction
impl Debug for MatchingFunction
Source§impl Default for MatchingFunction
impl Default for MatchingFunction
Source§impl Message for MatchingFunction
impl Message for MatchingFunction
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for MatchingFunction
impl PartialEq for MatchingFunction
impl StructuralPartialEq for MatchingFunction
Auto Trait Implementations§
impl Freeze for MatchingFunction
impl RefUnwindSafe for MatchingFunction
impl Send for MatchingFunction
impl Sync for MatchingFunction
impl Unpin for MatchingFunction
impl UnwindSafe for MatchingFunction
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request