MatchingFunction

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

Fields

operator

MatchingFunctionOperator

Operator for a function.

left_operands[]

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[]

Operand

The operands on the right hand side of the equation.

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/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.