AI-generated Key Takeaways
-
This document details how to list analysis queries owned by a specified customer.
-
The request uses a GET HTTP method with a specific URL structure that includes a parent customer resource name.
-
You can filter the response using parameters like page size, page token, and a filter string that supports various fields.
-
The request body must be empty.
-
The response body contains a list of queries and an optional token for the next results page.
-
This action requires the
https://www.googleapis.com/auth/adsdatahub
OAuth scope for authorization.
Lists the analysis queries owned by the specified customer.
HTTP request
GET https://adsdatahub.googleapis.com/v1/{parent=customers/*}/analysisQueries
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Parent customer resource name, e.g. 'customers/123'. |
Query parameters
Parameters | |
---|---|
pageSize |
Maximum number of items to return. If 0, The server will determine the number of queries to return. |
pageToken |
Page token, returned by a previous call, used to request the next page of results, if any. |
filter |
Filters your response. Works using the following fields / formatting: name=”customers/271828/analysisQueries/pi314159265359” title=”up_and_right” queryText="SELECT LN(2.7182818284);" queryState="RUNNABLE" updateTime>unix_seconds updateEmail=”abc@gmail.com” createTime>unix_seconds createEmail=”abc@gmail.com” |
Request body
The request body must be empty.
Response body
Response to a ListDataQueries request. Contains the queries owned by the specified customer.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"queries": [
{
object ( |
Fields | |
---|---|
queries[] |
A list of queries. |
nextPageToken |
A token that can be used to request the next results page. This field is empty if there are no additional results. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adsdatahub