- Resource: AnalysisQuery
- MergeSpec
- MergeColumn
- MergeType
- FilteredRowSummary
- ColumnSummaryRule
- SummaryType
- Methods
Resource: AnalysisQuery
Defines an analysis query that can be executed within Ads Data Hub.
JSON representation |
---|
{ "name": string, "title": string, "queryText": string, "parameterTypes": { string: { object ( |
Fields | |
---|---|
name |
Output only. Immutable. Name that uniquely identifies a query. It has the form customers/[customerId]/analysisQueries/[resource_id], e.g. 'customers/123/analysisQueries/abcd1234'. The resource ID is generated by the server. |
title |
Query title, which is unique within a single Ads Data Hub customer and query type. |
queryText |
Query text written in Standard SQL. See https://cloud.google.com/bigquery/docs/reference/standard-sql/. |
parameterTypes |
Any additional parameters expected by the query. Maps each argument name to its argument type. An object containing a list of |
mergeSpec |
Instructions for row merging. If present, then any rows that would have been dropped for privacy reasons will be combined into a single merged row. The merged row will be in the final output if the merged row meets privacy requirements. |
queryState |
Query state. |
updateTime |
Output only. Time the query was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateEmail |
Output only. Email address of user who last updated the query. |
createTime |
Output only. Immutable. Time the query was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
createEmail |
Output only. Immutable. Email address of user who created the query. |
queryShare[] |
Indicates ways that a query may be shared beyond the owning Ads Data Hub customer. |
Union field filtered_row . Instructions for row merging. filtered_row can be only one of the following: |
|
filteredRowSummary |
Define how to combine rows dropped for privacy reasons into a single merged row. The merged row will be included in the final output if the merged row meets privacy requirements. |
generateFilteredRowSummaryAutomatically |
If true, a filtered row summary is generated automatically. |
MergeSpec
Merge instructions for an analysis query result schema.
JSON representation |
---|
{
"columns": {
string: {
object ( |
Fields | |
---|---|
columns |
Instructions for merging each column, keyed by name. Any missing columns will be treated as MERGE_TYPE_UNSPECIFIED. An object containing a list of |
MergeColumn
Merge instructions for a single output column.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Method used to combine the values for the column. |
value |
The constant value to use (only valid for CONSTANT merge type). |
MergeType
All supported operations for column merging.
Enums | |
---|---|
MERGE_TYPE_UNSPECIFIED |
Unspecified merge type. The merged column value will be NULL. |
CONSTANT |
Replace merged column value with the given constant. |
SUM |
Take the sum of the merged column values. |
FilteredRowSummary
Merge instructions for an analysis query result schema.
JSON representation |
---|
{
"columns": {
string: {
object ( |
Fields | |
---|---|
columns |
Instructions for merging each column, keyed by name. Any missing columns will be treated as SUMMARY_TYPE_UNSPECIFIED. An object containing a list of |
ColumnSummaryRule
Merge instructions for a single output column.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Method used to combine the values for the column. |
value |
The constant value to use (only valid for CONSTANT summary type). |
SummaryType
All supported operations for column merging.
Enums | |
---|---|
SUMMARY_TYPE_UNSPECIFIED |
Unspecified summary type. The summary column value will be NULL. |
CONSTANT |
Replace merged column value with the given constant. |
SUM |
Take the sum of the merged column values. |
Methods |
|
---|---|
|
Creates an analysis query for later execution. |
|
Deletes an analysis query. |
|
Retrieves the requested analysis query. |
|
Lists the analysis queries owned by the specified customer. |
|
Updates an existing analysis query. |
|
Starts execution on a stored analysis query. |
|
Starts execution on a transient analysis query. |
|
Performs static validation checks on the provided analysis query. |