Reference documentation and code samples for the Google Ads Ad Manager V1 Client class ReportDefinition.
The definition of how a report should be run.
Generated from protobuf message google.ads.admanager.v1.ReportDefinition
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ dimensions
array
Required. The list of dimensions to report on. If empty, the report will have no dimensions, and any metrics will be totals.
↳ metrics
array
Required. The list of metrics to report on. If empty, the report will have no metrics.
↳ filters
↳ time_zone
string
Optional. The time zone the date range is defined in for this report. Defaults to publisher's time zone if not specified. Time zone in IANA format. Acceptable values depend on the report type. Publisher time zone is always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" for UTC.
↳ currency_code
string
Optional. The ISO 4217 currency code for this report. Defaults to publisher currency code if not specified.
↳ date_range
↳ comparison_date_range
Google\Ads\AdManager\V1\Report\DateRange
Optional. The comparison date range of this report. If unspecified, the report will not have any comparison metrics.
↳ custom_dimension_key_ids
array
Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, custom_dimension_key_ids[0] describes CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE.
↳ line_item_custom_field_ids
array
Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, line_item_custom_field_ids[0] describes LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE.
↳ order_custom_field_ids
array
Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, order_custom_field_ids[0] describes ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE.
↳ creative_custom_field_ids
array
Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, creative_custom_field_ids[0] describes CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE.
↳ report_type
int
Required. The type of this report.
↳ time_period_column
int
Optional. Include a time period column to introduce comparison columns in the report for each generated period. For example, set to "QUARTERS" here to have a column for each quarter present in the primary date range. If "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter column will also include comparison values for its relative previous quarter.
↳ flags
array< Google\Ads\AdManager\V1\Report\Flag
>
Optional. List of flags for this report. Used to flag rows in a result set based on a set of defined filters.
↳ sorts
getDimensions
Required. The list of dimensions to report on. If empty, the report will have no dimensions, and any metrics will be totals.
setDimensions
Required. The list of dimensions to report on. If empty, the report will have no dimensions, and any metrics will be totals.
var
int[]
$this
getMetrics
Required. The list of metrics to report on. If empty, the report will have no metrics.
setMetrics
Required. The list of metrics to report on. If empty, the report will have no metrics.
var
int[]
$this
getFilters
Optional. The filters for this report.
setFilters
Optional. The filters for this report.
$this
getTimeZone
Optional. The time zone the date range is defined in for this report.
Defaults to publisher's time zone if not specified. Time zone in IANA format. Acceptable values depend on the report type. Publisher time zone is always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" for UTC.
string
setTimeZone
Optional. The time zone the date range is defined in for this report.
Defaults to publisher's time zone if not specified. Time zone in IANA format. Acceptable values depend on the report type. Publisher time zone is always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" for UTC.
var
string
$this
getCurrencyCode
Optional. The ISO 4217 currency code for this report. Defaults to publisher currency code if not specified.
string
setCurrencyCode
Optional. The ISO 4217 currency code for this report. Defaults to publisher currency code if not specified.
var
string
$this
getDateRange
Required. The primary date range of this report.
hasDateRange
clearDateRange
setDateRange
Required. The primary date range of this report.
$this
getComparisonDateRange
Optional. The comparison date range of this report. If unspecified, the report will not have any comparison metrics.
hasComparisonDateRange
clearComparisonDateRange
setComparisonDateRange
Optional. The comparison date range of this report. If unspecified, the report will not have any comparison metrics.
$this
getCustomDimensionKeyIds
Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, custom_dimension_key_ids[0] describes CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE.
setCustomDimensionKeyIds
Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, custom_dimension_key_ids[0] describes CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE.
$this
getLineItemCustomFieldIds
Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, line_item_custom_field_ids[0] describes LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE.
setLineItemCustomFieldIds
Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, line_item_custom_field_ids[0] describes LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE.
$this
getOrderCustomFieldIds
Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, order_custom_field_ids[0] describes ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE.
setOrderCustomFieldIds
Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, order_custom_field_ids[0] describes ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE.
$this
getCreativeCustomFieldIds
Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, creative_custom_field_ids[0] describes CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE.
setCreativeCustomFieldIds
Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* dimensions. The index of this repeated field corresponds to the index on each dimension. For example, creative_custom_field_ids[0] describes CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE.
$this
getReportType
Required. The type of this report.
int
setReportType
Required. The type of this report.
var
int
$this
getTimePeriodColumn
Optional. Include a time period column to introduce comparison columns in the report for each generated period. For example, set to "QUARTERS" here to have a column for each quarter present in the primary date range. If "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter column will also include comparison values for its relative previous quarter.
int
setTimePeriodColumn
Optional. Include a time period column to introduce comparison columns in the report for each generated period. For example, set to "QUARTERS" here to have a column for each quarter present in the primary date range. If "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter column will also include comparison values for its relative previous quarter.
var
int
$this
getFlags
Optional. List of flags for this report. Used to flag rows in a result set based on a set of defined filters.
setFlags
Optional. List of flags for this report. Used to flag rows in a result set based on a set of defined filters.
$this
getSorts
Optional. Default sorts to apply to this report.
setSorts
Optional. Default sorts to apply to this report.
$this