Returns all rows that match the search query.
List of thrown errors: AuthenticationError AuthorizationError ChangeEventError ChangeStatusError ClickViewError HeaderError InternalError QueryError QuotaError RequestError
HTTP request
POST https://googleads.googleapis.com/v18/customers/{customerId}/googleAds:search
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. The ID of the customer being queried. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"query": string,
"pageToken": string,
"pageSize": integer,
"validateOnly": boolean,
"searchSettings": {
object ( |
Fields | |
---|---|
query |
Required. The query string. |
pageToken |
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from |
pageSize |
This field is deprecated and will be removed in a future version of the API. As of v17, Google Ads API will return a |
validateOnly |
If true, the request is validated but not executed. |
searchSettings |
Settings that allow users to specify request count, summary row, and results behavior. |
Response body
Response message for GoogleAdsService.Search
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "results": [ { object ( |
Fields | |
---|---|
results[] |
The list of rows that matched the query. |
nextPageToken |
Pagination token used to retrieve the next page of results. Pass the content of this string as the |
totalResultsCount |
Total number of results that match the query ignoring the LIMIT clause. |
fieldMask |
FieldMask that represents what fields were requested by the user. This is a comma-separated list of fully qualified names of fields. Example: |
summaryRow |
Summary row that contains summary of metrics in results. Summary of metrics means aggregation of metrics across all results, here aggregation could be sum, average, rate, etc. |
queryResourceConsumption |
The amount of resources consumed to serve the query. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
SearchSettings
Indicates search settings in request parameter.
JSON representation |
---|
{ "omitResults": boolean, "returnSummaryRow": boolean, "returnTotalResultsCount": boolean } |
Fields | |
---|---|
omitResults |
If true, results will be excluded from the response. Otherwise, results will be returned. Default is false. |
returnSummaryRow |
If true, summary row will be included in the response and sent in a response by itself after all other query results are returned. Default is false. |
returnTotalResultsCount |
If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false. |