Page Summary
-
Temp tables are created in Ads Data Hub queries using
CREATE TABLE temp_table AS (...)and remain active for 72 hours. -
A TempTable resource includes information such as name, table path, associated customer IDs, query type, column details, creation time, and the operation that created it.
-
The
QueryTypeenum specifies the type of query that created the table, with options likeANALYSIS,USER_LIST, andSPECIAL_ENDPOINT. -
The
getmethod retrieves a specific temp table, while thelistmethod provides a list of 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. |


