Upload ad image
upload_ad_imageUpload an image via URL or base64 to the ad image library and receive an AdImageHash to use in text and image ads.
Instructions
Uploads an image to the ad image library (adimages/add) and returns its AdImageHash — use that hash as AdImageHash on a text & image ad. Provide the image as a public URL (fetched and encoded server-side) or as base64 in imageData. Yandex accepts JPG/PNG/GIF up to 10 MB; a text & image ad needs a landscape image (min 1080×607).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public image URL; fetched and base64-encoded server-side. Provide this or imageData. | |
| name | Yes | Image name shown in the library. | |
| imageData | No | Base64-encoded image bytes (a data: URL prefix is stripped). Provide this or url. |