upload_image_asset
Upload PNG/JPEG images to the Microsoft Advertising media library, specifying aspect ratio, and receive a media ID for use in PMax asset groups.
Instructions
Draft an image upload to the account media library (for image extensions / PMax asset groups). Returns media id on apply. PNG/JPEG.
media_type is the image's aspect ratio, one of:
Image1x1: square (e.g. 1200x1200)
Image191x100: 1.91:1 landscape (e.g. 1200x628)
GenericImage
Image4x1
Live-verified 2026-07-30, after fixing two live faults (MediaType is an aspect-ratio label; the AddMedia response comes back unwrapped — both noted above). AddMedia also dedupes byte-identical images: re-uploading returns the existing media id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| media_type | Yes |