src/Google/AdsApi/AdWords/Query/v201809/ExpressionBuilder.php
public function buildExpression()
    {
        if (isset($this->simpleOperator)) {
            return sprintf(
                '%s %s %s',
                $this->fieldName,
                $this->simpleOperator,
                self::formatValue($this->simpleValue)
            );
        }

        if (isset($this->listOperator)) {
            return sprintf(
                '%s %s [%s]',
                $this->fieldName,
                $this->listOperator,
                implode(', ', self::formatValues($this->listValues))
            );
        }

        throw new BadFunctionCallException('An operator must be set' .
            ' prior to calling this function.');
    }
public function buildExpression()
    {
        if (isset($this->simpleOperator)) {
            return sprintf(
                '%s %s %s',
                $this->fieldName,
                $this->simpleOperator,
                self::formatValue($this->simpleValue)
            );
        }

        if (isset($this->listOperator)) {
            return sprintf(
                '%s %s [%s]',
                $this->fieldName,
                $this->listOperator,
                implode(', ', self::formatValues($this->listValues))
            );
        }

        throw new BadFunctionCallException('An operator must be set' .
            ' prior to calling this function.');
    }
public function buildExpression ( ) { if ( isset ( $ this -> simpleOperator ) ) { return sprintf ( '%s %s %s' , $ this -> fieldName , $ this -> simpleOperator , self :: formatValue ( $ this -> simpleValue ) ) ; } if ( isset ( $ this -> listOperator ) ) { return sprintf ( '%s %s [%s]' , $ this -> fieldName , $ this -> listOperator , implode ( ', ' , self :: formatValues ( $ this -> listValues ) ) ) ; } throw new BadFunctionCallException ( 'An operator must be set' . ' prior to calling this function.' ) ; }
Builds a logic expression in the WHERE clause of an AWQL string.

@return string a logic expression in the WHERE clause of an AWQL string

@throws BadFunctionCallException when no operators was specified prior
to calling this function
Builds a logic expression in the WHERE clause of an AWQL string .