class Queries extends Resource (View source)

The "queries" collection of methods.

Typical usage is:

 $doubleclickbidmanagerService = new Google\Service\DoubleClickBidManager(...);
 $queries = $doubleclickbidmanagerService->queries;

Methods

create(Query $postBody, array $optParams = [])

Creates a new query. (queries.create)

delete(string $queryId, array $optParams = [])

Deletes an existing query as well as its generated reports. (queries.delete)

get(string $queryId, array $optParams = [])

Retrieves a query. (queries.get)

listQueries(array $optParams = [])

Lists queries created by the current user. (queries.listQueries)

run(string $queryId, RunQueryRequest $postBody, array $optParams = [])

Runs an existing query to generate a report. (queries.run)

Details

Query create(Query $postBody, array $optParams = [])

Creates a new query. (queries.create)

Parameters

Query $postBody
array $optParams

Optional parameters.

Return Value

Query

Exceptions

Exception

delete(string $queryId, array $optParams = [])

Deletes an existing query as well as its generated reports. (queries.delete)

Parameters

string $queryId

Required. The ID of the query to delete.

array $optParams

Optional parameters.

Exceptions

Exception

Query get(string $queryId, array $optParams = [])

Retrieves a query. (queries.get)

Parameters

string $queryId

Required. The ID of the query to retrieve.

array $optParams

Optional parameters.

Return Value

Query

Exceptions

Exception

ListQueriesResponse listQueries(array $optParams = [])

Lists queries created by the current user. (queries.listQueries)

Parameters

array $optParams

Optional parameters.

Return Value

ListQueriesResponse

Exceptions

Exception

Report run(string $queryId, RunQueryRequest $postBody, array $optParams = [])

Runs an existing query to generate a report. (queries.run)

Parameters

string $queryId

Required. The ID of the query to run.

RunQueryRequest $postBody
array $optParams

Optional parameters.

Return Value

Report

Exceptions

Exception