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)));
파일 보기
프로젝트 열기: googleads/googleads-php-lib
공개 프로퍼티들
공개 메소드들
메소드 상세
public __construct ( $operator = null, $lhsOperand = null, $rhsOperand = null, $functionString = null ) |
Gets the namesapce of this class
Gets the xsi:type name of this class
프로퍼티 상세
$functionString 공개적으로 프로퍼티
public string $functionString |
리턴 |
string |
|
public FunctionArgumentOperand[] $lhsOperand |
리턴 |
FunctionArgumentOperand[] |
|
public tnsFunctionOperator $operator |
리턴 |
tnsFunctionOperator |
|
public FunctionArgumentOperand[] $rhsOperand |
리턴 |
FunctionArgumentOperand[] |
|