update_ads
Update Yandex Direct text ads: modify title, headline, body, URL, or display path. Approved ads revert to draft and need re-moderation. Use confirm=false for dry-run preview.
Instructions
Update text ads (title, text, URL, etc.).
Note: Updating an approved ad resets it to DRAFT — it must be re-moderated.
Args: ads: List of objects with Id + fields to change: - Id (int): ad ID (required) - TextAd (dict, optional): fields to update: - Title (str): new headline (max 35 chars) - Title2 (str): new second headline (max 30 chars) - Text (str): new body (max 81 chars) - Href (str): new destination URL - DisplayUrlPath (str): display path after domain (max 20 chars)
confirm: True to execute; False returns dry-run plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ads | Yes | ||
| confirm | No |