Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.v201809.Function Class Reference

Represents a function where its operator is applied to its argument operands resulting in a return value. It has the form (Operand... Operator Operand...). The type of the return value depends on the operator being applied and the type of the operands. More...

Classes

class  Fields
 List of all supported fields for the Function class. More...
 
class  FilterableFields
 List of all supported filterable fields for the Function class. More...
 
class  SelectableFields
 List of all supported selectable fields for the Function class. More...
 

Public Attributes

FunctionOperator operator{get{return this.operatorField
 Operator for a function. This field is required and should not be More...
 

Properties

this[System.Xml.Serialization.XmlIgnoreAttribute()][EditorBrowsable(EditorBrowsableState.Never)]
bool 
operatorSpecified [get, set]
 
FunctionArgumentOperand[] lhsOperand [get, set]
 Operand on the LHS in the equation. This is also the operand to be used for single operand expressions such as NOT. The minimum size of this collection is 1. More...
 
FunctionArgumentOperand[] rhsOperand [get, set]
 Operand on the RHS of the equation. More...
 
string functionString [get, set]
 String representation of the More...
 

Detailed Description

Represents a function where its operator is applied to its argument operands resulting in a return value. It has the form (Operand... Operator Operand...). The type of the return value depends on the operator being applied and the type of the operands.

Operands per function is limited to 20.

Here is a code example:

  // For example
"feed_attribute == 30" can be represented as: FeedId feedId = (FeedId of Feed
associated with feed_attribute) FeedAttributeId feedAttributeId =
(FeedAttributeId of feed_attribute) Function function = new Function();
function.setLhsOperand( Arrays.asList((Operand) new FeedAttributeOperand(feedId,
feedAttributeId))); function.setOperator(Operator.IN); function.setRhsOperand(
Arrays.asList((Operand) new ConstantOperand(30L))); // Another example matching
on multiple values: "feed_item_id IN (10, 20, 30)" can be represented as:
Function function = new Function(); function.setLhsOperand(
Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
function.setOperator(Operator.IN); function.setRhsOperand(Arrays.asList(
(Operand) new ConstantOperand(10L), new ConstantOperand(20L), new
ConstantOperand(30L)));  

Member Data Documentation

FunctionOperator Google.Api.Ads.AdWords.v201809.Function.operator{get{return this.operatorField

Operator for a function. This field is required and should not be

null.

Property Documentation

string Google.Api.Ads.AdWords.v201809.Function.functionString
getset

String representation of the

Function.

For mutate actions, this field can be set instead of the , lhsOperand, and rhsOperand fields. This field will be parsed and used to populate the other fields.

When Function objects are returned from get or mutate calls, this field contains the string representation of the . Note that because multiple strings may map to the same Function (whitespace and single versus double quotation marks, for example), the value returned may not be identical to the string sent in the request.

FunctionArgumentOperand [] Google.Api.Ads.AdWords.v201809.Function.lhsOperand
getset

Operand on the LHS in the equation. This is also the operand to be used for single operand expressions such as NOT. The minimum size of this collection is 1.

this[System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] bool Google.Api.Ads.AdWords.v201809.Function.operatorSpecified
getset
FunctionArgumentOperand [] Google.Api.Ads.AdWords.v201809.Function.rhsOperand
getset

Operand on the RHS of the equation.


The documentation for this class was generated from the following file: