Upload ad image
upload_ad_imageUpload an image to Yandex Direct's ad image library and get its AdImageHash for use in text & image ads. Provide the image via public URL or base64.
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. |