List Google Ads search terms
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Returns the search terms that triggered the account's ads, ordered by impressions.
Pass either date_range or both start_date and end_date. Sending only one of the two dates is rejected with a 400, as is a start_date after end_date. Explicit dates win over date_range.
date_range accepts TODAY, YESTERDAY, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, LAST_90_DAYS, THIS_WEEK_MON_TODAY, THIS_WEEK_SUN_TODAY, LAST_WEEK_MON_SUN, LAST_WEEK_SUN_SAT, LAST_BUSINESS_WEEK, THIS_MONTH, and LAST_MONTH, and defaults to LAST_30_DAYS. LAST_7_DAYS, LAST_30_DAYS and LAST_90_DAYS count back from today in the account's own time zone and include today; the other values are Google Ads' windows, which end yesterday.
At most 100 terms come back and there is no paging, so a busy account returns only its top 100. Terms are gathered from every campaign type on the account and merged into one list. When one of those reads fails the rest are still returned, under a 200 and with nothing in the response to say some terms are missing.
<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/apps/{app_id}/google-ads/analytics/search-terms
- Auth: HTTP bearer
Path parameters
ID of the app whose Google Ads reporting you want to read.
Query parameters
A preset window, for example LAST_7_DAYS or LAST_MONTH. Ignored when start_date and end_date are both set.
First day of an explicit window, as YYYY-MM-DD. Requires end_date.
Last day of an explicit window, as YYYY-MM-DD. Requires start_date.
Response
Up to 100 search terms, highest impressions first.
Example response
[
{
"search_term": "oak dining table",
"campaign": "Spring sale - Search",
"impressions": 980,
"clicks": 17,
"cost_micros": 24500000,
"conversions": 2
}
]Changes
- breaking
queryrequest parameterend_datelist-of-types was narrowed by removing typesnull - breaking
queryrequest parameterstart_datelist-of-types was narrowed by removing typesnull - info
for the
queryrequest parameterend_date, the type was generalized from no type tostring - info
for the
queryrequest parameterstart_date, the type was generalized from no type tostring
- breaking
- info
the security scope
read_onlywas added to the endpoint's security schemePersonalAccessTokenAuth - info
the security scope
full_accesswas removed from the endpoint's security schemePersonalAccessTokenAuth
- info