Reference documentation and code samples for the Google Ads Ad Manager V1 Client class DateRange.
A date range for a report.
Generated from protobuf message google.ads.admanager.v1.Report.DateRange
Namespace
Google \ Ads \ AdManager \ V1 \ ReportMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ fixed | Google\Ads\AdManager\V1\Report\DateRange\FixedDateRangeA fixed date range. | 
| ↳ relative | intA relative date range. | 
getFixed
A fixed date range.
| Returns | |
|---|---|
| Type | Description | 
| Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange|null | |
hasFixed
setFixed
A fixed date range.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getRelative
A relative date range.
| Returns | |
|---|---|
| Type | Description | 
| int | |
hasRelative
setRelative
A relative date range.
| Parameter | |
|---|---|
| Name | Description | 
| var | int | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getDateRangeType
| Returns | |
|---|---|
| Type | Description | 
| string | |