Page Summary
-
Temp tables in Ads Data Hub are created using CREATE TABLE temp_table AS (...) and remain active for 72 hours.
-
Temp tables have a JSON representation including fields such as name, tablePath, customer IDs, queryType, usableQueryTypes, columns, createTime, and operation.
-
The queryType defines the type of query that created the table, with possible values including ANALYSIS, USER_LIST, and SPECIAL_ENDPOINT.
-
Methods available for temp tables include
getto retrieve a specific table andlistto list all temp tables created by a customer.
Resource: TempTable
Defines a temp table created by an Ads Data Hub query. Temp tables are created using CREATE TABLE temp_table AS (...) in an Ads Data Hub query. Temp tables remain active for 72 hours before needing to be refreshed.
| JSON representation |
|---|
{ "name" : string , "tablePath" : string , "adsDataCustomerId" : string , "matchDataCustomerId" : string , "queryType" : enum ( |
| Fields | |
|---|---|
name
|
Name that uniquely identifies a table. It has the form customers/[customerId]/tempTables/[resource_id]. The resource ID is generated by the server. |
tablePath
|
Fully qualified table path, e.g. 'tmp.table' |
adsDataCustomerId
|
Linked Ads Data Hub customer ID used when executing the original temp table query. |
matchDataCustomerId
|
Linked Ads Data Hub customer ID used when executing the original temp table query. |
queryType
|
Type of query that created the table. Temp tables are only accessible to to queries of the same type unless usableQueryTypes is set. |
usableQueryTypes[]
|
Types of queries that can access this temp table. If empty, this temp table is only accessible to queries of the same type as its queryType. |
columns[]
|
A list of table columns. |
createTime
|
Timestamp when the temp table is created, in micros. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
operation
|
Operation that created the temp table. It has the form operations/[jobId] |
QueryType
Query type.
| Enums | |
|---|---|
QUERY_TYPE_UNSPECIFIED
|
No query type specified. |
ANALYSIS
|
An AnalysisQuery. |
USER_LIST
|
A UserListQuery. |
SPECIAL_ENDPOINT
|
A query triggered by a special endpoint. |
Methods |
|
|---|---|
|
Retrieves the requested Ads Data Hub temp table. |
|
Lists the Ads Data Hub temp tables that the customer has created. |


