$delegate
$delegate :
Builds an AWQL string for querying AdWords SOAP services.
__construct(\Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilderDelegate|null $delegate = null,\Google\AdsApi\Common\AdsUtilityRegistryInterface|null $utilityRegistry = null)
Creates a new `ServiceQueryBuilder` object.
\Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilderDelegate|null | $delegate | a delegate to build
a |
\Google\AdsApi\Common\AdsUtilityRegistryInterface|null | $utilityRegistry | a registry to register this utility class |
copyFrom(\Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder $otherInstance): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder
Creates a new query builder object by copying each clauses from another query builder object.
\Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder | $otherInstance | the other query builder object for copying its clauses |
a new builder object that copies from the input one
select(array $fields): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder
Sets the fields for the SELECT clause. Repeated field names will be included exactly once.
array | $fields | the fields for building the SELECT clause |
the current instance of
ServiceQueryBuilder
for chaining
where(string $field): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryWhereBuilder
Sets the field name to be added to the WHERE clause. Every time this function is called, it will add a new condition to the WHERE clause.
All conditions are connected using the AND operator.
string | $field | a field name to be added to the WHERE clause |
a builder object for building the WHERE clause
orderByAsc(string $field): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder
Adds a field name with the ascending direction (ASC) to the ORDER BY clause.
string | $field | a field name to be added to the ORDER BY clause |
the current instance of
ServiceQueryBuilder
for chaining
orderByDesc(string $field): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder
Adds a field name with the descending direction (DESC) to the ORDER BY clause.
string | $field | a field name to be added to the ORDER BY clause |
the current instance of
ServiceQueryBuilder
for chaining
limit(integer $startIndex,integer $pageSize): \Google\AdsApi\AdWords\Query\v201809\ServiceQueryBuilder
Sets the start index and page size for the LIMIT clause.
integer | $startIndex | the start index of the first page |
integer | $pageSize | the count of entries to be fetched in each page |
the current instance of
ServiceQueryBuilder
for chaining
build(): \Google\AdsApi\AdWords\Query\v201809\ServiceQuery
Builds a new `ServiceQuery` object.
if the select()
function was not called prior
to this function
a new ServiceQuery
object