Skip to main content
POST
/
api
/
v1
/
google-ads
/
languages
/
search
Search for language suggestions
curl --request POST \
  --url http://localhost:8000/api/v1/google-ads/languages/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "google_ads_customer_id": 123,
  "query": "",
  "limit": 50,
  "force_refresh": false
}
'
{
  "suggestions": [
    {
      "id": 123,
      "name": "<string>",
      "code": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

token_id
integer | null

Optional specific Token ID

Body

application/json

Request schema for language search.

google_ads_customer_id
integer
required

Google Ads customer ID

query
string
default:""

Optional search query to filter languages

Maximum string length: 100
limit
integer
default:50

Maximum number of results

Required range: 1 <= x <= 100
force_refresh
boolean
default:false

Force refresh from API, bypass cache

Response

Successful Response

Response schema for language search.

suggestions
LanguageSuggestionSchema · object[]
required

List of language suggestions