Required. Parent customer resource name, e.g. 'customers/123'.
Query parameters
Parameters
pageSize
integer
Maximum number of items to return. If 0, The server will determine the number of queries to return.
pageToken
string
Page token, returned by a previous call, used to request the next page of results, if any.
filter
string
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eLists analysis queries owned by a specified customer using the \u003ccode\u003ecustomers/{customer_id}/analysisQueries\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering results by query name, title, text, state, update/create time and email using the \u003ccode\u003efilter\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters for retrieving large result sets.\u003c/p\u003e\n"],["\u003cp\u003eReturns a list of \u003ccode\u003eAnalysisQuery\u003c/code\u003e objects and a \u003ccode\u003enextPageToken\u003c/code\u003e for subsequent requests.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/adsdatahub\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details how to list analysis queries for a specific customer using the Ads Data Hub API. It uses a `GET` request to the specified URL, including the customer ID in the path. Optional query parameters `pageSize`, `pageToken`, and `filter` can refine the results. The request body must be empty. The response contains a list of analysis `queries` and a `nextPageToken` for paginated results. Authorization requires the `https://www.googleapis.com/auth/adsdatahub` scope.\n"],null,["# Method: customers.analysisQueries.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListAnalysisQueriesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nLists the analysis queries owned by the specified customer.\n\n### HTTP request\n\n`GET https://adsdatahub.googleapis.com/v1/{parent=customers/*}/analysisQueries`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------|\n| `parent` | `string` Required. Parent customer resource name, e.g. 'customers/123'. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Maximum number of items to return. If 0, The server will determine the number of queries to return. |\n| `pageToken` | `string` Page token, returned by a previous call, used to request the next page of results, if any. |\n| `filter` | `string` 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\\\u003eunix_seconds updateEmail=\"abc@gmail.com\" createTime\\\u003eunix_seconds createEmail=\"abc@gmail.com\" |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse to a ListDataQueries request. Contains the queries owned by the specified customer.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"queries\": [ { object (/ads-data-hub/marketers/reference/rest/v1/customers.analysisQueries#AnalysisQuery) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------|\n| `queries[]` | `object (`[AnalysisQuery](/ads-data-hub/marketers/reference/rest/v1/customers.analysisQueries#AnalysisQuery)`)` A list of queries. |\n| `nextPageToken` | `string` A token that can be used to request the next results page. This field is empty if there are no additional results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsdatahub`"]]