Реклама · Чтение
Реклама · Google · Поиск · Филиалы
ads_google_search_locations
Попробуйте три запроса
Получить данные
- Вы указываетеКампания
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Реклама / Google / Поиск / Филиалы» выполни чтение по выбранной записи (кампания). Выведи кратко: результат.
- result
- Результат
Задать параметры
- Вы указываетеКампания
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Реклама / Google / Поиск / Филиалы» на учебном примере с campaignId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- campaignId
- DEMO-101
- chunkOffset
- 0
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Реклама / Google / Поиск / Филиалы» объясни результат. Отметь отсутствующие значения.
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Если результат получен частями, соблюдайте контрольные значения и порядок продолжения из ответа.
Описание разработчика
Search real Google geographic target constants by city/region name. Use returned IDs for targeting; no guessed geographic identifiers. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.
Параметры запроса
- campaignId
- Native ADS campaign ID from this company; not a Google campaign ID. обязательно по схеме · string
- query
- Поисковое выражение для этой операции. обязательно по схеме · string · до символов 100
- countryCode
- ISO 3166-1 country code for city search. необязательно · string · по умолчанию "US"
- chunkOffset
- Character offset in the immutable JSON result, separate from native list offset. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
- chunkHash
- SHA-256 returned by the first chunk; required for subsequent chunks. необязательно · string
- readSnapshotId
- Immutable native snapshot returned for large reads. Supply it on every following chunk, within 15 minutes; avoids repeating live provider checks. необязательно · string
Что вернёт команда
- result
- Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native ADS campaign ID from this company; not a Google campaign ID."
},
"query": {
"type": "string",
"minLength": 2,
"maxLength": 100,
"description": "City name to search in the Google location catalog."
},
"countryCode": {
"default": "US",
"description": "ISO 3166-1 country code for city search.",
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"chunkOffset": {
"default": 0,
"description": "Character offset in the immutable JSON result, separate from native list offset.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"chunkHash": {
"description": "SHA-256 returned by the first chunk; required for subsequent chunks.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"readSnapshotId": {
"description": "Immutable native snapshot returned for large reads. Supply it on every following chunk, within 15 minutes; avoids repeating live provider checks.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"campaignId",
"query",
"chunkOffset"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get."
}
},
"required": [
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}