Search
Stay organized with collections
Save and categorize content based on your preferences.
gRPC
REST
HTTP request
POST https://googleads.googleapis.com/v22/customers/{customerId}/googleAds:search
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters
customerId
string
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 (SearchSettings )
}
}
Fields
pageSize
integer
This field is deprecated and will be removed in a future version of the API. As of v17, Google Ads API will return a PAGE_SIZE_NOT_SUPPORTED error if this field is set in the request body. See https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html to learn more details.
pageToken
string
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from nextPageToken in the previous response in order to request the next page of results.
query
string
Required. The query string.
searchSettings
Settings that allow users to specify request count, summary row, and results behavior.
validateOnly
boolean
If true, the request is validated but not executed.
Response body
Response message for GoogleAdsService.Search .
If successful, the response body contains data with the following structure:
JSON representation
{
"results" : [
{
object (GoogleAdsRow )
}
] ,
"nextPageToken" : string ,
"totalResultsCount" : string ,
"fieldMask" : string ,
"summaryRow" : {
object (GoogleAdsRow )
} ,
"queryResourceConsumption" : string
}
Fields
fieldMask
FieldMask that represents what fields were requested by the user.
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
nextPageToken
string
Pagination token used to retrieve the next page of results. Pass the content of this string as the pageToken attribute of the next request. nextPageToken is not returned for the last page.
queryResourceConsumption
The amount of resources consumed to serve the query.
results[]
The list of rows that matched the query.
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.
totalResultsCount
Total number of results that match the query ignoring the LIMIT clause.
SearchSettings
Indicates search settings in request parameter.
JSON representation
{
"omitResults" : boolean ,
"returnSummaryRow" : boolean ,
"returnTotalResultsCount" : boolean
}
Fields
omitResults
boolean
If true, results will be excluded from the response. Otherwise, results will be returned. Default is false.
returnSummaryRow
boolean
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
boolean
If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview .
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-12 UTC.
[null,null,["Last updated 2025-12-12 UTC."],[],[]]