src/Google/AdsApi/AdWords/Query/QueryValidator.php
public static function validateFieldName($fieldName)
    {
        if (!is_string($fieldName)) {
            return ValidationResult::fail('The field name must be a' .
                ' string.');
        }

        if (empty(trim($fieldName))) {
            return ValidationResult::fail('The field name must not be' .
                ' null, empty, white spaces or zero.');
        }

        return ValidationResult::pass();
    }
public static function validateFieldName($fieldName)
    {
        if (!is_string($fieldName)) {
            return ValidationResult::fail('The field name must be a' .
                ' string.');
        }

        if (empty(trim($fieldName))) {
            return ValidationResult::fail('The field name must not be' .
                ' null, empty, white spaces or zero.');
        }

        return ValidationResult::pass();
    }
public static function validateFieldName ( $ fieldName ) { if ( ! is_string ( $ fieldName ) ) { return ValidationResult :: fail ( 'The field name must be a' . ' string.' ) ; } if ( empty ( trim ( $ fieldName ) ) ) { return ValidationResult :: fail ( 'The field name must not be' . ' null, empty, white spaces or zero.' ) ; } return ValidationResult :: pass ( ) ; }
Validates a field name for using in the SELECT, WHERE or ORDER BY
clauses of an AWQL string.

@param string $fieldName the field name to be validated
@return ValidationResult the object containing whether the validation
is passed or failed with detail explanation
Validates a field name for using in the SELECT WHERE or ORDER BY clauses of an AWQL string .