Skip to main content
POST
/
api
/
v1
/
debug
/
assistant-functions
/
get-search-terms-data
Debug Get Search Terms Data
curl --request POST \
  --url http://localhost:8000/api/v1/debug/assistant-functions/get-search-terms-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "google_ads_customer_id": "<string>",
  "google_ads_login_customer_id": "<string>",
  "days": 30,
  "limit": 1500,
  "campaign_id": "<string>"
}
'
{
  "success": true,
  "data": "<string>",
  "execution_time_ms": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Schema for debugging get_search_terms_data function.

google_ads_customer_id
string
required

The Google Ads customer ID

google_ads_login_customer_id
string | null

The Google Ads login customer ID

days
integer
default:30

Number of days of historical data to retrieve

Required range: 1 <= x <= 180
limit
integer
default:1500

Maximum number of search terms to retrieve

Required range: 1 <= x <= 10000
campaign_id
string | null

Optional campaign ID to filter by

Response

Successful Response

Schema for debug function responses.

success
boolean
required

Whether the function executed successfully

data
string
required

JSON string containing the function result or error information

execution_time_ms
number | null

Function execution time in milliseconds