Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder Class Reference

Class for building report queries. More...

Inherits Google.Api.Ads.AdWords.Util.Reports.IReportQueryBuilder< TParent, TQuery, TReportType, TDateRangeType >.

Public Member Functions

 ReportQueryBuilder ()
 Initializes a new instance of the ReportQueryBuilder class. More...
 
ReportQueryBuilder Select (params string[] fields)
 Adds a SELECT clause to the query. More...
 
ReportQueryBuilder From (ReportDefinitionReportType reportType)
 Adds a FROM clause to the query. More...
 
ReportQueryBuilder From (string reportType)
 Adds a FROM clause to the query. More...
 
IWhereBuilder< ReportQueryBuilderWhere (string fieldName)
 Adds a WHERE clause to the query. More...
 
ReportQueryBuilder During (string dateRange)
 Adds a DURING clause to the query. More...
 
ReportQueryBuilder During (ReportDefinitionDateRangeType dateRangeType)
 Adds a DURING clause to the query. More...
 
ReportQueryBuilder During (string minDate, string maxDate)
 Adds a DURING clause to the query. More...
 
ReportQueryBuilder During (DateTime minDate, DateTime maxDate)
 Adds a DURING clause to the query. More...
 
ReportQuery Build ()
 Builds the query. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Util.Reports.IReportQueryBuilder< TParent, TQuery, TReportType, TDateRangeType >
TQuery Build ()
 Builds the query. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Util.Reports.ISelectBuilder< TParent >
TParent Select (params string[] fields)
 Adds a SELECT clause to the query. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Util.Reports.IFilterBuilder< TParent >
IWhereBuilder< TParent > Where (string fieldName)
 Adds a WHERE clause to the query. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Util.Reports.IDataSourceBuilder< TParent, TReportType >
TParent From (TReportType reportType)
 Adds a FROM clause to the query. More...
 
TParent From (string reportType)
 Adds a FROM clause to the query. More...
 
- Public Member Functions inherited from Google.Api.Ads.AdWords.Util.Reports.IDurationBuilder< TParent, TDateRangeType >
TParent During (string dateRange)
 Adds a DURING clause to the query. More...
 
TParent During (TDateRangeType dateRangeType)
 Adds a DURING clause to the query. More...
 
TParent During (string minDate, string maxDate)
 Adds a DURING clause to the query. More...
 
TParent During (DateTime minDate, DateTime maxDate)
 Adds a DURING clause to the query. More...
 

Detailed Description

Class for building report queries.

Constructor & Destructor Documentation

Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.ReportQueryBuilder ( )
inline

Initializes a new instance of the ReportQueryBuilder class.

Member Function Documentation

ReportQuery Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.Build ( )
inline

Builds the query.

Returns
The query.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.During ( string  dateRange)
inline

Adds a DURING clause to the query.

Parameters
dateRangeThe predefined date range.
Returns
The parent builder for call chaining.
Exceptions
ArgumentExceptionThrown if the dateRange cannot be parsed into a ReportDefinitionDateRangeType object.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.During ( ReportDefinitionDateRangeType  dateRangeType)
inline

Adds a DURING clause to the query.

Parameters
dateRangeTypeType of the date range.
Returns
The parent builder for call chaining.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.During ( string  minDate,
string  maxDate 
)
inline

Adds a DURING clause to the query.

Parameters
minDateThe minimum date in yyyyMMdd format.
maxDateThe maximum date in yyyyMMdd format.
Returns
The parent builder for call chaining.
Exceptions
ArgumentExceptionThrown if the date is not in yyyyMMdd format.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.During ( DateTime  minDate,
DateTime  maxDate 
)
inline

Adds a DURING clause to the query.

Parameters
minDateThe minimum date.
maxDateThe maximum date.
Returns
The parent builder for call chaining.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.From ( ReportDefinitionReportType  reportType)
inline

Adds a FROM clause to the query.

Parameters
reportTypeType of the report.
Returns
The parent builder for call chaining.
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.From ( string  reportType)
inline

Adds a FROM clause to the query.

Parameters
reportTypeType of the report.
Returns
The parent builder for call chaining.
Exceptions
ArgumentException
ReportQueryBuilder Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.Select ( params string[]  fields)
inline

Adds a SELECT clause to the query.

Parameters
fieldsThe fields to be selected.
Returns
The parent builder for call chaining.
IWhereBuilder<ReportQueryBuilder> Google.Api.Ads.AdWords.Util.Reports.v201809.ReportQueryBuilder.Where ( string  fieldName)
inline

Adds a WHERE clause to the query.

Parameters
fieldNameName of the field to filter on.
Returns
A builder for building the WHERE clause.

The documentation for this class was generated from the following file: