$delegate
$delegate :
Uses a delegate to build a `ReportQuery` object and records utility of itself.
__construct(\Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilderDelegate|null $delegate = null,\Google\AdsApi\Common\AdsUtilityRegistryInterface|null $utilityRegistry = null)
Creates a new `ReportQueryBuilder` object.
\Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilderDelegate|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\ReportQueryBuilder $otherInstance): \Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilder
Creates a new query builder object by copying each clauses from another query builder object.
\Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilder | $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\ReportQueryBuilder
Sets the fields for the SELECT clause. Field names can be repeated and their order will be preserved.
array | $fields | the fields for building the SELECT clause |
the current instance of
ReportQueryBuilder
for chaining
from(string $reportType): \Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilder
Sets the report type to be added to the FROM clause of an AWQL string.
string | $reportType | name of a report type to be added to the
FROM clause of an AWQL string, as defined in
|
the current instance of
ReportQueryBuilder
for chaining
where(string $field): \Google\AdsApi\AdWords\Query\v201809\ReportQueryWhereBuilder
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
duringDateRange(string $dateRangeType): \Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilder
Sets the date range type for the DURING clause.
string | $dateRangeType | a date range type to be added to the
DURING clause of an AWQL string, as defined in
|
the current instance of
ReportQueryBuilder
for chaining
during(string $startDate,string $endDate): \Google\AdsApi\AdWords\Query\v201809\ReportQueryBuilder
Sets a custom date range by specifying the start and end dates.
string | $startDate | the start date for the DURING clause of an AWQL string |
string | $endDate | the end date for the DURING clause of an AWQL string |
the current instance of
ReportQueryBuilder
for chaining
build(): \Google\AdsApi\AdWords\Query\v201809\ReportQuery
Builds a new `ReportQuery` object.
if the select()
and from()
functions were
not called prior to this function
a new ReportQuery
object