PHP Класс FeedFunction, googleads-php-lib
It is of the form (Operand... Operator Operand...)
We can represent expressions like this easily:
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)));
Показать файл
Открыть проект
Открытые свойства
Открытые методы
Описание методов
__construct()
публичный Метод
public __construct ( $operator = null, $lhsOperand = null, $rhsOperand = null, $functionString = null ) |
getNamespace()
публичный Метод
Gets the namesapce of this class
getXsiTypeName()
публичный Метод
Gets the xsi:type name of this class
Описание свойств
$functionString публичное свойство
public string $functionString |
Результат |
string |
|
$lhsOperand публичное свойство
public FunctionArgumentOperand[] $lhsOperand |
Результат |
FunctionArgumentOperand[] |
|
$operator публичное свойство
public tnsFunctionOperator $operator |
Результат |
tnsFunctionOperator |
|
$rhsOperand публичное свойство
public FunctionArgumentOperand[] $rhsOperand |
Результат |
FunctionArgumentOperand[] |
|