add_keywords
Add keywords to Yandex Direct ad groups with customizable bids and parameters. Use the confirm flag to preview changes before execution, preventing accidental spending.
Instructions
Add keywords to ad groups.
Args: keywords: List of keyword objects. Each must include: - AdGroupId (int): target ad group (required) - Keyword (str): keyword phrase, e.g. "купить ноутбук москва" (required). Use ! to fix word form: "!купить ноутбук" Use + to fix stop words: "ноутбук +в москве" Use quotes for exact phrase: '"купить ноутбук"' Use [] to fix word order: "[купить ноутбук]" - Bid (int, optional): search bid in MICROS. 30 RUB = 30_000_000. - ContextBid (int, optional): YAN (network) bid in MICROS. - UserParam1 (str, optional): custom parameter 1 (passed in URL) - UserParam2 (str, optional): custom parameter 2 (passed in URL)
confirm: True to add keywords; False returns dry-run plan.MONEY NOTE: Bid and ContextBid are in MICROS (1 RUB = 1_000_000). Example: 50 RUB bid = 50_000_000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| confirm | No |