Method: queries.list

  • This document details how to list queries created by the current user using an HTTP GET request to https://doubleclickbidmanager.googleapis.com/v2/queries.

  • The request supports query parameters such as pageSize, pageToken, and orderBy to control the pagination and sorting of results.

  • The request body must be empty, and the response body contains a list of queries and an optional nextPageToken for pagination.

  • Accessing this method requires the https://www.googleapis.com/auth/doubleclickbidmanager OAuth scope.

Lists queries created by the current user.

HTTP request

GET https://doubleclickbidmanager.googleapis.com/v2/queries

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageSize

integer

Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified.

pageToken

string

A token identifying which page of results the server should return. Typically, this is the value of nextPageToken, returned from the previous call to the queries.list method. If unspecified, the first page of results is returned.

orderBy

string

Field to sort the list by. Accepts the following values:

  • queryId (default)
  • metadata.title

The default sorting order is ascending. To specify descending order for a field, add the suffix desc to the field name. For example, queryId desc.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "queries": [
    {
      object (Query)
    }
  ],
  "nextPageToken": string
}
Fields
queries[]

object (Query)

The list of queries.

This field will be absent if empty.

nextPageToken

string

A token to retrieve the next page of results. Pass this value in the pageToken field in the subsequent call to queries.list method to retrieve the next page of results.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/doubleclickbidmanager

For more information, see the OAuth 2.0 Overview.