src/Google/AdsApi/AdWords/Query/QueryValidator.php
public static function validateServiceQuery(
        $awqlString,
        $allowPagination = true
    ) {
        $forbiddenKeywords = ['FROM', 'DURING'];
        if (!$allowPagination) {
            $forbiddenKeywords []= 'LIMIT';
        }
        return self::validateQuery(
            $awqlString,
            ['SELECT'],
            $forbiddenKeywords
        );
    }
public static function validateServiceQuery(
        $awqlString,
        $allowPagination = true
    ) {
        $forbiddenKeywords = ['FROM', 'DURING'];
        if (!$allowPagination) {
            $forbiddenKeywords []= 'LIMIT';
        }
        return self::validateQuery(
            $awqlString,
            ['SELECT'],
            $forbiddenKeywords
        );
    }
public static function validateServiceQuery ( $ awqlString , $ allowPagination = true ) { $ forbiddenKeywords = [ 'FROM' , 'DURING' ] ; if ( ! $ allowPagination ) { $ forbiddenKeywords [ ] = 'LIMIT' ; } return self :: validateQuery ( $ awqlString , [ 'SELECT' ] , $ forbiddenKeywords ) ; }
Validates a service query AWQL string.

@param string $awqlString the AWQL string to be validated
@param bool|null $allowPagination optional, indicates whether the AWQL
is allowed to have the pagination (LIMIT) clause
@return ValidationResult the object containing whether the validation
is passed or failed with detail explanation
Validates a service query AWQL string .