Реклама · Чувствительное действие
Реклама · Google · Поиск · Таргетинг · Сохранение
ads_google_search_targeting_save
Попробуйте три запроса
Подготовить
- Вы указываетеКампания
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Google / Поиск / Таргетинг / Сохранение». Для изменения нужны кампания, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- campaignId
- Кампания
- expectedVersion
- Текущая версия
- confirmed
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Google / Поиск / Таргетинг / Сохранение» с параметром gender = female. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- gender
- female
- campaignId
- DEMO-101
- confirmed
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Google / Поиск / Таргетинг / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.
Описание разработчика
Update only supplied Google Search geography, languages, gender exclusions or schedule. Gender requires a selected group. City IDs and language IDs are provider-verified. Other settings, budget, conversion goal and unrelated exclusions remain unchanged. 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
- groupId
- Google ad group ID owned by the selected campaign. необязательно · string
- expectedVersion
- Exact current provider settings version returned by ads_google_search_get. обязательно по схеме · string
- confirmed
- Explicit confirmation to change the reviewed advertising settings. обязательно по схеме · boolean
- locationIds
- Google location IDs replacing positive geographic targets. необязательно · array · до элементов 50
- excludedLocationIds
- Google location IDs replacing geographic exclusions. необязательно · array · до элементов 50
- presenceOnly
- True targets physical presence; false also permits interest in target places. необязательно · boolean
- allLanguages
- True removes language restrictions; otherwise supply languageIds. необязательно · boolean
- languageIds
- Google targetable language constant IDs. необязательно · array · до элементов 50
- gender
- Selected group audience; female and male exclude the opposite and unknown gender. необязательно · string · варианты female, male, all
- schedule
- Replacement Google ad schedule; an empty list enables all hours. необязательно · array · до элементов 42
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · 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."
},
"groupId": {
"type": "string",
"pattern": "^[0-9]{1,20}$",
"description": "Google ad group ID owned by the selected campaign."
},
"expectedVersion": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact current provider settings version returned by ads_google_search_get."
},
"confirmed": {
"type": "boolean",
"const": true,
"description": "Explicit confirmation to change the reviewed advertising settings."
},
"locationIds": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9]{1,20}$"
},
"description": "Google location IDs replacing positive geographic targets."
},
"excludedLocationIds": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9]{1,20}$"
},
"description": "Google location IDs replacing geographic exclusions."
},
"presenceOnly": {
"type": "boolean",
"description": "True targets physical presence; false also permits interest in target places."
},
"allLanguages": {
"type": "boolean",
"description": "True removes language restrictions; otherwise supply languageIds."
},
"languageIds": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9]{1,20}$"
},
"description": "Google targetable language constant IDs."
},
"gender": {
"type": "string",
"enum": [
"female",
"male",
"all"
],
"description": "Selected group audience; female and male exclude the opposite and unknown gender."
},
"schedule": {
"maxItems": 42,
"type": "array",
"items": {
"type": "object",
"properties": {
"day": {
"type": "string",
"enum": [
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY",
"FRIDAY",
"SATURDAY",
"SUNDAY"
],
"description": "Account-timezone day of week."
},
"startHour": {
"type": "integer",
"minimum": 0,
"maximum": 23,
"description": "Start hour, 0 through 23."
},
"startMinute": {
"type": "string",
"enum": [
"ZERO",
"FIFTEEN",
"THIRTY",
"FORTY_FIVE"
],
"description": "Start quarter-hour."
},
"endHour": {
"type": "integer",
"minimum": 0,
"maximum": 24,
"description": "End hour, at most 24 with minute ZERO."
},
"endMinute": {
"type": "string",
"enum": [
"ZERO",
"FIFTEEN",
"THIRTY",
"FORTY_FIVE"
],
"description": "End quarter-hour."
}
},
"required": [
"day",
"startHour",
"startMinute",
"endHour",
"endMinute"
],
"additionalProperties": false
},
"description": "Replacement Google ad schedule; an empty list enables all hours."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Original stable request identifier. Recover with ads_workspace_operation_get after uncertainty; never repeat a spending instruction with a new key."
}
},
"required": [
"campaignId",
"expectedVersion",
"confirmed",
"requestId"
],
"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"
}
}
]
}
}
}